Package net.minecraft.datafixer.fix
Class ItemNbtFix
java.lang.Object
com.mojang.datafixers.DataFix
net.minecraft.datafixer.fix.ItemNbtFix
- Direct Known Subclasses:
GoatHornIdFix
,OminousBannerItemRenameFix
,RemoveFilteredBookTextFix
public abstract class ItemNbtFix
extends com.mojang.datafixers.DataFix
- Mappings:
Namespace Name named net/minecraft/datafixer/fix/ItemNbtFix
intermediary net/minecraft/class_7505
official bgv
-
Field Summary
-
Constructor Summary
ConstructorDescriptionItemNbtFix
(com.mojang.datafixers.schemas.Schema outputSchema, String name, Predicate<String> itemIdPredicate) -
Method Summary
Modifier and TypeMethodDescriptionstatic UnaryOperator
<com.mojang.datafixers.Typed<?>> fixNbt
(com.mojang.datafixers.types.Type<?> itemStackType, Predicate<String> itemIdPredicate, UnaryOperator<com.mojang.serialization.Dynamic<?>> nbtFixer) protected abstract <T> com.mojang.serialization.Dynamic
<T> fixNbt
(com.mojang.serialization.Dynamic<T> dynamic) final com.mojang.datafixers.TypeRewriteRule
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
-
Field Details
-
name
- Mappings:
Namespace Name Mixin selector named name
Lnet/minecraft/datafixer/fix/ItemNbtFix;name:Ljava/lang/String;
intermediary field_39403
Lnet/minecraft/class_7505;field_39403:Ljava/lang/String;
official a
Lbgv;a:Ljava/lang/String;
-
itemIdPredicate
- Mappings:
Namespace Name Mixin selector named itemIdPredicate
Lnet/minecraft/datafixer/fix/ItemNbtFix;itemIdPredicate:Ljava/util/function/Predicate;
intermediary field_39404
Lnet/minecraft/class_7505;field_39404:Ljava/util/function/Predicate;
official b
Lbgv;b:Ljava/util/function/Predicate;
-
-
Constructor Details
-
ItemNbtFix
public ItemNbtFix(com.mojang.datafixers.schemas.Schema outputSchema, String name, Predicate<String> itemIdPredicate) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/datafixer/fix/ItemNbtFix;<init>(Lcom/mojang/datafixers/schemas/Schema;Ljava/lang/String;Ljava/util/function/Predicate;)V
intermediary <init>
Lnet/minecraft/class_7505;<init>(Lcom/mojang/datafixers/schemas/Schema;Ljava/lang/String;Ljava/util/function/Predicate;)V
official <init>
Lbgv;<init>(Lcom/mojang/datafixers/schemas/Schema;Ljava/lang/String;Ljava/util/function/Predicate;)V
-
-
Method Details
-
makeRule
public final com.mojang.datafixers.TypeRewriteRule makeRule()- Specified by:
makeRule
in classcom.mojang.datafixers.DataFix
-
fixNbt
public static UnaryOperator<com.mojang.datafixers.Typed<?>> fixNbt(com.mojang.datafixers.types.Type<?> itemStackType, Predicate<String> itemIdPredicate, UnaryOperator<com.mojang.serialization.Dynamic<?>> nbtFixer) - Mappings:
Namespace Name Mixin selector named fixNbt
Lnet/minecraft/datafixer/fix/ItemNbtFix;fixNbt(Lcom/mojang/datafixers/types/Type;Ljava/util/function/Predicate;Ljava/util/function/UnaryOperator;)Ljava/util/function/UnaryOperator;
intermediary method_56971
Lnet/minecraft/class_7505;method_56971(Lcom/mojang/datafixers/types/Type;Ljava/util/function/Predicate;Ljava/util/function/UnaryOperator;)Ljava/util/function/UnaryOperator;
official a
Lbgv;a(Lcom/mojang/datafixers/types/Type;Ljava/util/function/Predicate;Ljava/util/function/UnaryOperator;)Ljava/util/function/UnaryOperator;
-
fixNbt
protected abstract <T> com.mojang.serialization.Dynamic<T> fixNbt(com.mojang.serialization.Dynamic<T> dynamic) - Mappings:
Namespace Name Mixin selector named fixNbt
Lnet/minecraft/datafixer/fix/ItemNbtFix;fixNbt(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
intermediary method_20445
Lnet/minecraft/class_7505;method_20445(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
official a
Lbgv;a(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
-