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
named net/minecraft/datafixer/fix/EntityVariantTypeFix
intermediary net/minecraft/class_7371
official bfo
  • 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
    protected com.mojang.datafixers.Typed<?>
    transform(com.mojang.datafixers.Typed<?> inputTyped)
     
    private static <T> com.mojang.serialization.Dynamic<T>
    updateEntity(com.mojang.serialization.Dynamic<T> entityDynamic, String oldVariantKey, String newVariantKey, Function<com.mojang.serialization.Dynamic<T>,com.mojang.serialization.Dynamic<T>> variantIntToId)
     

    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
      named variantKey Lnet/minecraft/datafixer/fix/EntityVariantTypeFix;variantKey:Ljava/lang/String;
      intermediary field_38705 Lnet/minecraft/class_7371;field_38705:Ljava/lang/String;
      official a Lbfo;a:Ljava/lang/String;
    • variantIntToId

      private final IntFunction<String> variantIntToId
      Mappings:
      Namespace Name Mixin selector
      named variantIntToId Lnet/minecraft/datafixer/fix/EntityVariantTypeFix;variantIntToId:Ljava/util/function/IntFunction;
      intermediary field_38706 Lnet/minecraft/class_7371;field_38706:Ljava/util/function/IntFunction;
      official b Lbfo;b: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
      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
      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
      official <init> Lbfo;<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

    • updateEntity

      private static <T> com.mojang.serialization.Dynamic<T> updateEntity(com.mojang.serialization.Dynamic<T> entityDynamic, String oldVariantKey, String newVariantKey, Function<com.mojang.serialization.Dynamic<T>,com.mojang.serialization.Dynamic<T>> variantIntToId)
      Mappings:
      Namespace Name Mixin selector
      named updateEntity Lnet/minecraft/datafixer/fix/EntityVariantTypeFix;updateEntity(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;
      official a Lbfo;a(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<?> inputTyped)
      Specified by:
      transform in class ChoiceFix
      Mappings:
      Namespace Name Mixin selector
      named transform Lnet/minecraft/datafixer/fix/ChoiceFix;transform(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;
      official a Lbhr;a(Lcom/mojang/datafixers/Typed;)Lcom/mojang/datafixers/Typed;