Class ChoiceFix

java.lang.Object
com.mojang.datafixers.DataFix
net.minecraft.datafixer.fix.ChoiceFix
Direct Known Subclasses:
BlockEntityBannerColorFix, BlockEntityBlockStateFix, BlockEntityJukeboxFix, BlockEntityKeepPacked, BlockEntityShulkerBoxColorFix, BlockEntitySignTextStrictJsonFix, CatTypeFix, ColorlessShulkerEntityFix, EntityArmorStandSilentFix, EntityHorseSaddleFix, EntityItemFrameDirectionFix, EntityPaintingMotiveFix, EntityShulkerColorFix, EntityShulkerRotationFix, EntityWolfColorFix, EntityZombieVillagerTypeFix, JigsawPropertiesFix, MemoryExpiryDataFix, OminousBannerBlockEntityRenameFix, RemoveGolemGossipFix, StriderGravityFix, VillagerFollowRangeFix, VillagerGossipFix, VillagerProfessionFix, VillagerTradeFix, ZombieVillagerXpRebuildFix

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

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

    Constructors
    Constructor Description
    ChoiceFix​(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 makeRule()  
    protected abstract com.mojang.datafixers.Typed<?> transform​(com.mojang.datafixers.Typed<?> inputType)  

    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 Lako;a:Ljava/lang/String;
      intermediary field_5703 Lnet/minecraft/class_1197;field_5703:Ljava/lang/String;
      named name Lnet/minecraft/datafixer/fix/ChoiceFix;name:Ljava/lang/String;
    • choiceName

      private final String choiceName
      Mappings:
      Namespace Name Mixin selector
      official b Lako;b:Ljava/lang/String;
      intermediary field_5705 Lnet/minecraft/class_1197;field_5705:Ljava/lang/String;
      named choiceName Lnet/minecraft/datafixer/fix/ChoiceFix;choiceName:Ljava/lang/String;
    • type

      private final com.mojang.datafixers.DSL.TypeReference type
      Mappings:
      Namespace Name Mixin selector
      official c Lako;c:Lcom/mojang/datafixers/DSL$TypeReference;
      intermediary field_5704 Lnet/minecraft/class_1197;field_5704:Lcom/mojang/datafixers/DSL$TypeReference;
      named type Lnet/minecraft/datafixer/fix/ChoiceFix;type:Lcom/mojang/datafixers/DSL$TypeReference;
  • Constructor Details

    • ChoiceFix

      public ChoiceFix​(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> Lako;<init>(Lcom/mojang/datafixers/schemas/Schema;ZLjava/lang/String;Lcom/mojang/datafixers/DSL$TypeReference;Ljava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_1197;<init>(Lcom/mojang/datafixers/schemas/Schema;ZLjava/lang/String;Lcom/mojang/datafixers/DSL$TypeReference;Ljava/lang/String;)V
      named <init> Lnet/minecraft/datafixer/fix/ChoiceFix;<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
      Mappings:
      Namespace Name Mixin selector
      official makeRule Lako;makeRule()Lcom/mojang/datafixers/TypeRewriteRule;
      intermediary makeRule Lnet/minecraft/class_1197;makeRule()Lcom/mojang/datafixers/TypeRewriteRule;
      named makeRule Lnet/minecraft/datafixer/fix/ChoiceFix;makeRule()Lcom/mojang/datafixers/TypeRewriteRule;
    • transform

      protected abstract com.mojang.datafixers.Typed<?> transform​(com.mojang.datafixers.Typed<?> inputType)
      Mappings:
      Namespace Name Mixin selector
      official a Lako;a(Lcom/mojang/datafixers/Typed;)Lcom/mojang/datafixers/Typed;
      intermediary method_5105 Lnet/minecraft/class_1197;method_5105(Lcom/mojang/datafixers/Typed;)Lcom/mojang/datafixers/Typed;
      named transform Lnet/minecraft/datafixer/fix/ChoiceFix;transform(Lcom/mojang/datafixers/Typed;)Lcom/mojang/datafixers/Typed;