public class EntityBlockStateFix
extends com.mojang.datafixers.DataFix
| Modifier and Type | Field and Description |
|---|---|
private static Map<String,Integer> |
BLOCK_NAME_TO_ID |
| Constructor and Description |
|---|
EntityBlockStateFix(com.mojang.datafixers.schemas.Schema outputSchema,
boolean changesType) |
| Modifier and Type | Method and Description |
|---|---|
static int |
getNumericalBlockId(String blockId) |
com.mojang.datafixers.TypeRewriteRule |
makeRule() |
private com.mojang.datafixers.Typed<?> |
mergeIdAndData(com.mojang.datafixers.Typed<?> typed,
String oldIdKey,
String oldDataKey,
String newStateKey) |
private com.mojang.datafixers.Typed<?> |
method_15695(com.mojang.datafixers.Typed<?> typed) |
private com.mojang.datafixers.Typed<?> |
useFunction(com.mojang.datafixers.Typed<?> typed,
String entityId,
Function<com.mojang.datafixers.Typed<?>,com.mojang.datafixers.Typed<?>> function) |
checked, convertUnchecked, fixTypeEverywhere, fixTypeEverywhere, fixTypeEverywhere, fixTypeEverywhere, fixTypeEverywhereTyped, fixTypeEverywhereTyped, fixTypeEverywhereTyped, fixTypeEverywhereTyped, getInputSchema, getOutputSchema, getRule, getVersionKey, onFail, writeAndRead, writeFixAndReadpublic EntityBlockStateFix(com.mojang.datafixers.schemas.Schema outputSchema,
boolean changesType)
public static int getNumericalBlockId(String blockId)
public com.mojang.datafixers.TypeRewriteRule makeRule()
makeRule in class com.mojang.datafixers.DataFixprivate com.mojang.datafixers.Typed<?> method_15695(com.mojang.datafixers.Typed<?> typed)
private com.mojang.datafixers.Typed<?> mergeIdAndData(com.mojang.datafixers.Typed<?> typed,
String oldIdKey,
String oldDataKey,
String newStateKey)