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