Class EntityVariantTypeFix

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

public class EntityVariantTypeFix extends ChoiceFix
Mappings:
Namespace Name
official awi
intermediary net/minecraft/class_7371
named net/minecraft/datafixer/fix/EntityVariantTypeFix
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final IntFunction<String>
     
    private final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    EntityVariantTypeFix(com.mojang.datafixers.schemas.Schema outputSchema, String name, com.mojang.datafixers.DSL.TypeReference type, String entityId, String variantKey, IntFunction<String> variantIntToId)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private static <T> com.mojang.serialization.Dynamic<T>
    method_43072(com.mojang.serialization.Dynamic<T> dynamic, String string, String string2, Function<com.mojang.serialization.Dynamic<T>,com.mojang.serialization.Dynamic<T>> function)
     
    protected com.mojang.datafixers.Typed<?>
    transform(com.mojang.datafixers.Typed<?> inputType)

    Methods inherited from class net.minecraft.datafixer.fix.ChoiceFix

    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

    • variantKey

      private final String variantKey
      Mappings:
      Namespace Name Mixin selector
      official a Lawi;a:Ljava/lang/String;
      intermediary field_38705 Lnet/minecraft/class_7371;field_38705:Ljava/lang/String;
      named variantKey Lnet/minecraft/datafixer/fix/EntityVariantTypeFix;variantKey:Ljava/lang/String;
    • variantIntToId

      private final IntFunction<String> variantIntToId
      Mappings:
      Namespace Name Mixin selector
      official b Lawi;b:Ljava/util/function/IntFunction;
      intermediary field_38706 Lnet/minecraft/class_7371;field_38706:Ljava/util/function/IntFunction;
      named variantIntToId Lnet/minecraft/datafixer/fix/EntityVariantTypeFix;variantIntToId:Ljava/util/function/IntFunction;
  • Constructor Details

    • EntityVariantTypeFix

      public EntityVariantTypeFix(com.mojang.datafixers.schemas.Schema outputSchema, String name, com.mojang.datafixers.DSL.TypeReference type, String entityId, String variantKey, IntFunction<String> variantIntToId)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lawi;<init>(Lcom/mojang/datafixers/schemas/Schema;Ljava/lang/String;Lcom/mojang/datafixers/DSL$TypeReference;Ljava/lang/String;Ljava/lang/String;Ljava/util/function/IntFunction;)V
      intermediary <init> Lnet/minecraft/class_7371;<init>(Lcom/mojang/datafixers/schemas/Schema;Ljava/lang/String;Lcom/mojang/datafixers/DSL$TypeReference;Ljava/lang/String;Ljava/lang/String;Ljava/util/function/IntFunction;)V
      named <init> Lnet/minecraft/datafixer/fix/EntityVariantTypeFix;<init>(Lcom/mojang/datafixers/schemas/Schema;Ljava/lang/String;Lcom/mojang/datafixers/DSL$TypeReference;Ljava/lang/String;Ljava/lang/String;Ljava/util/function/IntFunction;)V
  • Method Details

    • method_43072

      private static <T> com.mojang.serialization.Dynamic<T> method_43072(com.mojang.serialization.Dynamic<T> dynamic, String string, String string2, Function<com.mojang.serialization.Dynamic<T>,com.mojang.serialization.Dynamic<T>> function)
      Mappings:
      Namespace Name Mixin selector
      official a Lawi;a(Lcom/mojang/serialization/Dynamic;Ljava/lang/String;Ljava/lang/String;Ljava/util/function/Function;)Lcom/mojang/serialization/Dynamic;
      intermediary method_43072 Lnet/minecraft/class_7371;method_43072(Lcom/mojang/serialization/Dynamic;Ljava/lang/String;Ljava/lang/String;Ljava/util/function/Function;)Lcom/mojang/serialization/Dynamic;
      named method_43072 Lnet/minecraft/datafixer/fix/EntityVariantTypeFix;method_43072(Lcom/mojang/serialization/Dynamic;Ljava/lang/String;Ljava/lang/String;Ljava/util/function/Function;)Lcom/mojang/serialization/Dynamic;
    • transform

      protected com.mojang.datafixers.Typed<?> transform(com.mojang.datafixers.Typed<?> inputType)
      Specified by:
      transform in class ChoiceFix
      Mappings:
      Namespace Name Mixin selector
      official a Laxz;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;