Package net.minecraft.datafixer.fix
Class EntityBlockStateFix
java.lang.Object
com.mojang.datafixers.DataFix
net.minecraft.datafixer.fix.EntityBlockStateFix
public class EntityBlockStateFix
extends com.mojang.datafixers.DataFix
-
Field Summary
Fields Modifier and Type Field Description private static Map<String,Integer>BLOCK_NAME_TO_ID -
Constructor Summary
Constructors Constructor Description EntityBlockStateFix(com.mojang.datafixers.schemas.Schema outputSchema, boolean changesType) -
Method Summary
Modifier and Type Method Description static intgetNumericalBlockId(String blockId)com.mojang.datafixers.TypeRewriteRulemakeRule()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)Methods inherited from class com.mojang.datafixers.DataFix
checked, convertUnchecked, fixTypeEverywhere, fixTypeEverywhere, fixTypeEverywhere, fixTypeEverywhere, fixTypeEverywhereTyped, fixTypeEverywhereTyped, fixTypeEverywhereTyped, fixTypeEverywhereTyped, getInputSchema, getOutputSchema, getRule, getVersionKey, onFail, writeAndRead, writeFixAndRead
-
Field Details
-
BLOCK_NAME_TO_ID
-
-
Constructor Details
-
EntityBlockStateFix
public EntityBlockStateFix(com.mojang.datafixers.schemas.Schema outputSchema, boolean changesType)
-
-
Method Details
-
getNumericalBlockId
-
makeRule
public com.mojang.datafixers.TypeRewriteRule makeRule()- Specified by:
makeRulein classcom.mojang.datafixers.DataFix
-
method_15695
private com.mojang.datafixers.Typed<?> method_15695(com.mojang.datafixers.Typed<?> typed) -
mergeIdAndData
-
useFunction
-