public abstract class EntityTransformFix
extends com.mojang.datafixers.DataFix
Constructor and Description |
---|
EntityTransformFix(String name,
com.mojang.datafixers.schemas.Schema outputSchema,
boolean changesType) |
Modifier and Type | Method and Description |
---|---|
com.mojang.datafixers.TypeRewriteRule |
makeRule() |
private <A> com.mojang.datafixers.Typed<A> |
makeTyped(Object object,
com.mojang.serialization.DynamicOps<?> dynamicOps,
com.mojang.datafixers.types.Type<A> type) |
protected abstract com.mojang.datafixers.util.Pair<String,com.mojang.datafixers.Typed<?>> |
transform(String choice,
com.mojang.datafixers.Typed<?> typed) |
checked, convertUnchecked, fixTypeEverywhere, fixTypeEverywhere, fixTypeEverywhere, fixTypeEverywhere, fixTypeEverywhereTyped, fixTypeEverywhereTyped, fixTypeEverywhereTyped, fixTypeEverywhereTyped, getInputSchema, getOutputSchema, getRule, getVersionKey, onFail, writeAndRead, writeFixAndRead
protected final String name
public EntityTransformFix(String name, com.mojang.datafixers.schemas.Schema outputSchema, boolean changesType)
public com.mojang.datafixers.TypeRewriteRule makeRule()
makeRule
in class com.mojang.datafixers.DataFix
private <A> com.mojang.datafixers.Typed<A> makeTyped(Object object, com.mojang.serialization.DynamicOps<?> dynamicOps, com.mojang.datafixers.types.Type<A> type)