Class ChoiceTypesFix

java.lang.Object
com.mojang.datafixers.DataFix
net.minecraft.datafixer.fix.ChoiceTypesFix

public class ChoiceTypesFix
extends com.mojang.datafixers.DataFix
  • Field Summary

    Fields
    Modifier and Type Field Description
    private String name  
    private com.mojang.datafixers.DSL.TypeReference types  
  • Constructor Summary

    Constructors
    Constructor Description
    ChoiceTypesFix​(com.mojang.datafixers.schemas.Schema outputSchema, String name, com.mojang.datafixers.DSL.TypeReference types)  
  • Method Summary

    Modifier and Type Method 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()  

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • name

      private final String name
    • types

      private final com.mojang.datafixers.DSL.TypeReference types
  • Constructor Details

    • ChoiceTypesFix

      public ChoiceTypesFix​(com.mojang.datafixers.schemas.Schema outputSchema, String name, com.mojang.datafixers.DSL.TypeReference types)
  • Method Details

    • makeRule

      public com.mojang.datafixers.TypeRewriteRule makeRule()
      Specified by:
      makeRule in class com.mojang.datafixers.DataFix
    • fixChoiceTypes

      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)