public class ChoiceTypesFix
extends com.mojang.datafixers.DataFix
Modifier and Type | Field and Description |
---|---|
private String |
name |
private com.mojang.datafixers.DSL.TypeReference |
types |
Constructor and Description |
---|
ChoiceTypesFix(com.mojang.datafixers.schemas.Schema outputSchema,
String name,
com.mojang.datafixers.DSL.TypeReference types) |
Modifier and Type | Method and Description |
---|---|
protected <K> com.mojang.datafixers.TypeRewriteRule |
fixChoiceTypes(String name,
com.mojang.datafixers.types.templates.TaggedChoice.TaggedChoiceType<K> inputChoiceType,
com.mojang.datafixers.types.templates.TaggedChoice.TaggedChoiceType<?> outputChoiceType) |
com.mojang.datafixers.TypeRewriteRule |
makeRule() |
checked, convertUnchecked, fixTypeEverywhere, fixTypeEverywhere, fixTypeEverywhere, fixTypeEverywhere, fixTypeEverywhereTyped, fixTypeEverywhereTyped, fixTypeEverywhereTyped, fixTypeEverywhereTyped, getInputSchema, getOutputSchema, getRule, getVersionKey, onFail, writeAndRead, writeFixAndRead
private final String name
private final com.mojang.datafixers.DSL.TypeReference types
public ChoiceTypesFix(com.mojang.datafixers.schemas.Schema outputSchema, String name, com.mojang.datafixers.DSL.TypeReference types)
public com.mojang.datafixers.TypeRewriteRule makeRule()
makeRule
in class com.mojang.datafixers.DataFix
protected final <K> com.mojang.datafixers.TypeRewriteRule fixChoiceTypes(String name, com.mojang.datafixers.types.templates.TaggedChoice.TaggedChoiceType<K> inputChoiceType, com.mojang.datafixers.types.templates.TaggedChoice.TaggedChoiceType<?> outputChoiceType)