Class ChoiceWriteReadFix

java.lang.Object
com.mojang.datafixers.DataFix
net.minecraft.datafixer.fix.ChoiceWriteReadFix
Direct Known Subclasses:
HorseArmorFix, PrimedTntBlockStateFix, RemoveEmptyItemInSuspiciousBlockFix, TippedArrowPotionToItemFix, TrialSpawnerConfigTagFix

public abstract class ChoiceWriteReadFix extends com.mojang.datafixers.DataFix
Mappings:
Namespace Name
named net/minecraft/datafixer/fix/ChoiceWriteReadFix
intermediary net/minecraft/class_8877
official bhs
  • Field Summary

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

    Constructors
    Constructor
    Description
    ChoiceWriteReadFix(com.mojang.datafixers.schemas.Schema outputSchema, boolean changesType, String name, com.mojang.datafixers.DSL.TypeReference type, String choiceName)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.mojang.datafixers.TypeRewriteRule
     
    private <S, T, A, B>
    com.mojang.datafixers.TypeRewriteRule
    makeRule(com.mojang.datafixers.types.Type<S> inputType, com.mojang.datafixers.types.Type<T> outputType, com.mojang.datafixers.OpticFinder<A> opticFinder, com.mojang.datafixers.types.Type<B> outputSubtype, com.mojang.datafixers.types.Type<?> rewrittenType)
     
    protected abstract <T> com.mojang.serialization.Dynamic<T>
    transform(com.mojang.serialization.Dynamic<T> data)
     

    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
      Mappings:
      Namespace Name Mixin selector
      named name Lnet/minecraft/datafixer/fix/ChoiceWriteReadFix;name:Ljava/lang/String;
      intermediary field_46773 Lnet/minecraft/class_8877;field_46773:Ljava/lang/String;
      official a Lbhs;a:Ljava/lang/String;
    • choiceName

      private final String choiceName
      Mappings:
      Namespace Name Mixin selector
      named choiceName Lnet/minecraft/datafixer/fix/ChoiceWriteReadFix;choiceName:Ljava/lang/String;
      intermediary field_46774 Lnet/minecraft/class_8877;field_46774:Ljava/lang/String;
      official b Lbhs;b:Ljava/lang/String;
    • type

      private final com.mojang.datafixers.DSL.TypeReference type
      Mappings:
      Namespace Name Mixin selector
      named type Lnet/minecraft/datafixer/fix/ChoiceWriteReadFix;type:Lcom/mojang/datafixers/DSL$TypeReference;
      intermediary field_46775 Lnet/minecraft/class_8877;field_46775:Lcom/mojang/datafixers/DSL$TypeReference;
      official c Lbhs;c:Lcom/mojang/datafixers/DSL$TypeReference;
  • Constructor Details

    • ChoiceWriteReadFix

      public ChoiceWriteReadFix(com.mojang.datafixers.schemas.Schema outputSchema, boolean changesType, String name, com.mojang.datafixers.DSL.TypeReference type, String choiceName)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/datafixer/fix/ChoiceWriteReadFix;<init>(Lcom/mojang/datafixers/schemas/Schema;ZLjava/lang/String;Lcom/mojang/datafixers/DSL$TypeReference;Ljava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_8877;<init>(Lcom/mojang/datafixers/schemas/Schema;ZLjava/lang/String;Lcom/mojang/datafixers/DSL$TypeReference;Ljava/lang/String;)V
      official <init> Lbhs;<init>(Lcom/mojang/datafixers/schemas/Schema;ZLjava/lang/String;Lcom/mojang/datafixers/DSL$TypeReference;Ljava/lang/String;)V
  • Method Details

    • makeRule

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

      private <S, T, A, B> com.mojang.datafixers.TypeRewriteRule makeRule(com.mojang.datafixers.types.Type<S> inputType, com.mojang.datafixers.types.Type<T> outputType, com.mojang.datafixers.OpticFinder<A> opticFinder, com.mojang.datafixers.types.Type<B> outputSubtype, com.mojang.datafixers.types.Type<?> rewrittenType)
      Mappings:
      Namespace Name Mixin selector
      named makeRule Lnet/minecraft/datafixer/fix/ChoiceWriteReadFix;makeRule(Lcom/mojang/datafixers/types/Type;Lcom/mojang/datafixers/types/Type;Lcom/mojang/datafixers/OpticFinder;Lcom/mojang/datafixers/types/Type;Lcom/mojang/datafixers/types/Type;)Lcom/mojang/datafixers/TypeRewriteRule;
      intermediary method_56641 Lnet/minecraft/class_8877;method_56641(Lcom/mojang/datafixers/types/Type;Lcom/mojang/datafixers/types/Type;Lcom/mojang/datafixers/OpticFinder;Lcom/mojang/datafixers/types/Type;Lcom/mojang/datafixers/types/Type;)Lcom/mojang/datafixers/TypeRewriteRule;
      official a Lbhs;a(Lcom/mojang/datafixers/types/Type;Lcom/mojang/datafixers/types/Type;Lcom/mojang/datafixers/OpticFinder;Lcom/mojang/datafixers/types/Type;Lcom/mojang/datafixers/types/Type;)Lcom/mojang/datafixers/TypeRewriteRule;
    • transform

      protected abstract <T> com.mojang.serialization.Dynamic<T> transform(com.mojang.serialization.Dynamic<T> data)
      Mappings:
      Namespace Name Mixin selector
      named transform Lnet/minecraft/datafixer/fix/ChoiceWriteReadFix;transform(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
      intermediary method_54447 Lnet/minecraft/class_8877;method_54447(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
      official a Lbhs;a(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;