Class ChoiceWriteReadFix

java.lang.Object
com.mojang.datafixers.DataFix
net.minecraft.datafixer.fix.ChoiceWriteReadFix
Direct Known Subclasses:
PrimedTntBlockStateFix

public abstract class ChoiceWriteReadFix extends com.mojang.datafixers.DataFix
Mappings:
Namespace Name
official bax
intermediary net/minecraft/class_8877
named net/minecraft/datafixer/fix/ChoiceWriteReadFix
  • 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
     
    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
      official a Lbax;a:Ljava/lang/String;
      intermediary field_46773 Lnet/minecraft/class_8877;field_46773:Ljava/lang/String;
      named name Lnet/minecraft/datafixer/fix/ChoiceWriteReadFix;name:Ljava/lang/String;
    • choiceName

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

      private final com.mojang.datafixers.DSL.TypeReference type
      Mappings:
      Namespace Name Mixin selector
      official c Lbax;c:Lcom/mojang/datafixers/DSL$TypeReference;
      intermediary field_46775 Lnet/minecraft/class_8877;field_46775:Lcom/mojang/datafixers/DSL$TypeReference;
      named type Lnet/minecraft/datafixer/fix/ChoiceWriteReadFix;type: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
      official <init> Lbax;<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
      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
  • Method Details

    • makeRule

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

      protected abstract <T> com.mojang.serialization.Dynamic<T> transform(com.mojang.serialization.Dynamic<T> data)
      Mappings:
      Namespace Name Mixin selector
      official a Lbax;a(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;
      named transform Lnet/minecraft/datafixer/fix/ChoiceWriteReadFix;transform(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;