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 alm
intermediary net/minecraft/class_1197
named net/minecraft/datafixer/fix/ChoiceFix
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private String
     
    private String
     
    private com.mojang.datafixers.DSL.TypeReference
     
  • 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
     
    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 Lalm;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 Lalm;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 Lalm;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> Lalm;<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
    • transform

      protected abstract com.mojang.datafixers.Typed<?> transform(com.mojang.datafixers.Typed<?> inputType)
      Mappings:
      Namespace Name Mixin selector
      official a Lalm;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;