Package net.minecraft.datafixer.fix
Class EntityVariantTypeFix
java.lang.Object
com.mojang.datafixers.DataFix
net.minecraft.datafixer.fix.ChoiceFix
net.minecraft.datafixer.fix.EntityVariantTypeFix
- Mappings:
Namespace Name named net/minecraft/datafixer/fix/EntityVariantTypeFix
intermediary net/minecraft/class_7371
official bdn
-
Field Summary
-
Constructor Summary
ConstructorDescriptionEntityVariantTypeFix
(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 TypeMethodDescriptionprotected 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 com.mojang.datafixers.DataFix
checked, convertUnchecked, fixTypeEverywhere, fixTypeEverywhere, fixTypeEverywhere, fixTypeEverywhere, fixTypeEverywhereTyped, fixTypeEverywhereTyped, fixTypeEverywhereTyped, fixTypeEverywhereTyped, getInputSchema, getOutputSchema, getRule, getVersionKey, onFail, writeAndRead, writeFixAndRead
-
Field Details
-
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
Lbdn;a:Ljava/lang/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
Lbdn;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>
Lbdn;<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
Lbdn;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 classChoiceFix
- 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
Lbfn;a(Lcom/mojang/datafixers/Typed;)Lcom/mojang/datafixers/Typed;
-