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 bej
-
Field Summary
-
Constructor Summary
ConstructorDescriptionItemNbtFix
(com.mojang.datafixers.schemas.Schema outputSchema, String name, Predicate<String> itemIdPredicate) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract <T> com.mojang.serialization.Dynamic
<T> fixNbt
(com.mojang.serialization.Dynamic<T> dynamic) final com.mojang.datafixers.TypeRewriteRule
makeRule()
static UnaryOperator
<com.mojang.datafixers.Typed<?>> method_56971
(com.mojang.datafixers.types.Type<?> type, Predicate<String> predicate, UnaryOperator<com.mojang.serialization.Dynamic<?>> unaryOperator) 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
Lbej;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
Lbej;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>
Lbej;<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
-
method_56971
public static UnaryOperator<com.mojang.datafixers.Typed<?>> method_56971(com.mojang.datafixers.types.Type<?> type, Predicate<String> predicate, UnaryOperator<com.mojang.serialization.Dynamic<?>> unaryOperator) - Mappings:
Namespace Name Mixin selector named method_56971
Lnet/minecraft/datafixer/fix/ItemNbtFix;method_56971(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
Lbej;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
Lbej;a(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
-