Package net.minecraft.datafixer.fix
Class ItemStackComponentizationFix.StackData
java.lang.Object
net.minecraft.datafixer.fix.ItemStackComponentizationFix.StackData
- Enclosing class:
ItemStackComponentizationFix
- Mappings:
Namespace Name named net/minecraft/datafixer/fix/ItemStackComponentizationFix$StackData
intermediary net/minecraft/class_9267$class_9268
official bem$a
-
Field Summary
Modifier and TypeFieldDescriptionprivate com.mojang.serialization.Dynamic
<?> private final int
private final String
private final com.mojang.serialization.Dynamic
<?> (package private) com.mojang.serialization.Dynamic
<?> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyFixer
(String nbtKey, boolean removeIfEmpty, UnaryOperator<com.mojang.serialization.Dynamic<?>> fixer) com.mojang.serialization.Dynamic
<?> finalize()
fromDynamic
(com.mojang.serialization.Dynamic<?> dynamic) com.mojang.serialization.OptionalDynamic
<?> getAndRemove
(String key) boolean
itemContains
(String componentId) boolean
itemEquals
(String itemId) boolean
itemMatches
(Set<String> itemIds) private static <T> com.mojang.serialization.Dynamic
<T> mergeLeftoverNbt
(com.mojang.serialization.Dynamic<T> data, com.mojang.serialization.Dynamic<?> leftoverNbt) com.mojang.serialization.Dynamic
<?> moveToComponent
(String nbtKey, com.mojang.serialization.Dynamic<?> components, String componentId) void
moveToComponent
(String nbtKey, String componentId) void
moveToComponent
(String nbtKey, String componentId, com.mojang.serialization.Dynamic<?> defaultValue) void
setComponent
(String key, com.mojang.serialization.Dynamic<?> value) void
setComponent
(String key, com.mojang.serialization.OptionalDynamic<?> optionalValue)
-
Field Details
-
itemId
- Mappings:
Namespace Name Mixin selector named itemId
Lnet/minecraft/datafixer/fix/ItemStackComponentizationFix$StackData;itemId:Ljava/lang/String;
intermediary field_49200
Lnet/minecraft/class_9267$class_9268;field_49200:Ljava/lang/String;
official a
Lbem$a;a:Ljava/lang/String;
-
count
private final int count- Mappings:
Namespace Name Mixin selector named count
Lnet/minecraft/datafixer/fix/ItemStackComponentizationFix$StackData;count:I
intermediary field_49201
Lnet/minecraft/class_9267$class_9268;field_49201:I
official b
Lbem$a;b:I
-
components
private com.mojang.serialization.Dynamic<?> components- Mappings:
Namespace Name Mixin selector named components
Lnet/minecraft/datafixer/fix/ItemStackComponentizationFix$StackData;components:Lcom/mojang/serialization/Dynamic;
intermediary field_49202
Lnet/minecraft/class_9267$class_9268;field_49202:Lcom/mojang/serialization/Dynamic;
official c
Lbem$a;c:Lcom/mojang/serialization/Dynamic;
-
leftoverNbt
private final com.mojang.serialization.Dynamic<?> leftoverNbt- Mappings:
Namespace Name Mixin selector named leftoverNbt
Lnet/minecraft/datafixer/fix/ItemStackComponentizationFix$StackData;leftoverNbt:Lcom/mojang/serialization/Dynamic;
intermediary field_49203
Lnet/minecraft/class_9267$class_9268;field_49203:Lcom/mojang/serialization/Dynamic;
official d
Lbem$a;d:Lcom/mojang/serialization/Dynamic;
-
nbt
com.mojang.serialization.Dynamic<?> nbt- Mappings:
Namespace Name Mixin selector named nbt
Lnet/minecraft/datafixer/fix/ItemStackComponentizationFix$StackData;nbt:Lcom/mojang/serialization/Dynamic;
intermediary field_49204
Lnet/minecraft/class_9267$class_9268;field_49204:Lcom/mojang/serialization/Dynamic;
official e
Lbem$a;e:Lcom/mojang/serialization/Dynamic;
-
-
Constructor Details
-
StackData
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/datafixer/fix/ItemStackComponentizationFix$StackData;<init>(Ljava/lang/String;ILcom/mojang/serialization/Dynamic;)V
intermediary <init>
Lnet/minecraft/class_9267$class_9268;<init>(Ljava/lang/String;ILcom/mojang/serialization/Dynamic;)V
official <init>
Lbem$a;<init>(Ljava/lang/String;ILcom/mojang/serialization/Dynamic;)V
-
-
Method Details
-
fromDynamic
public static Optional<ItemStackComponentizationFix.StackData> fromDynamic(com.mojang.serialization.Dynamic<?> dynamic) - Mappings:
Namespace Name Mixin selector named fromDynamic
Lnet/minecraft/datafixer/fix/ItemStackComponentizationFix$StackData;fromDynamic(Lcom/mojang/serialization/Dynamic;)Ljava/util/Optional;
intermediary method_57257
Lnet/minecraft/class_9267$class_9268;method_57257(Lcom/mojang/serialization/Dynamic;)Ljava/util/Optional;
official a
Lbem$a;a(Lcom/mojang/serialization/Dynamic;)Ljava/util/Optional;
-
getAndRemove
- Mappings:
Namespace Name Mixin selector named getAndRemove
Lnet/minecraft/datafixer/fix/ItemStackComponentizationFix$StackData;getAndRemove(Ljava/lang/String;)Lcom/mojang/serialization/OptionalDynamic;
intermediary method_57262
Lnet/minecraft/class_9267$class_9268;method_57262(Ljava/lang/String;)Lcom/mojang/serialization/OptionalDynamic;
official a
Lbem$a;a(Ljava/lang/String;)Lcom/mojang/serialization/OptionalDynamic;
-
setComponent
- Mappings:
Namespace Name Mixin selector named setComponent
Lnet/minecraft/datafixer/fix/ItemStackComponentizationFix$StackData;setComponent(Ljava/lang/String;Lcom/mojang/serialization/Dynamic;)V
intermediary method_57263
Lnet/minecraft/class_9267$class_9268;method_57263(Ljava/lang/String;Lcom/mojang/serialization/Dynamic;)V
official a
Lbem$a;a(Ljava/lang/String;Lcom/mojang/serialization/Dynamic;)V
-
setComponent
- Mappings:
Namespace Name Mixin selector named setComponent
Lnet/minecraft/datafixer/fix/ItemStackComponentizationFix$StackData;setComponent(Ljava/lang/String;Lcom/mojang/serialization/OptionalDynamic;)V
intermediary method_57265
Lnet/minecraft/class_9267$class_9268;method_57265(Ljava/lang/String;Lcom/mojang/serialization/OptionalDynamic;)V
official a
Lbem$a;a(Ljava/lang/String;Lcom/mojang/serialization/OptionalDynamic;)V
-
moveToComponent
public com.mojang.serialization.Dynamic<?> moveToComponent(String nbtKey, com.mojang.serialization.Dynamic<?> components, String componentId) - Mappings:
Namespace Name Mixin selector named moveToComponent
Lnet/minecraft/datafixer/fix/ItemStackComponentizationFix$StackData;moveToComponent(Ljava/lang/String;Lcom/mojang/serialization/Dynamic;Ljava/lang/String;)Lcom/mojang/serialization/Dynamic;
intermediary method_57264
Lnet/minecraft/class_9267$class_9268;method_57264(Ljava/lang/String;Lcom/mojang/serialization/Dynamic;Ljava/lang/String;)Lcom/mojang/serialization/Dynamic;
official a
Lbem$a;a(Ljava/lang/String;Lcom/mojang/serialization/Dynamic;Ljava/lang/String;)Lcom/mojang/serialization/Dynamic;
-
moveToComponent
public void moveToComponent(String nbtKey, String componentId, com.mojang.serialization.Dynamic<?> defaultValue) - Mappings:
Namespace Name Mixin selector named moveToComponent
Lnet/minecraft/datafixer/fix/ItemStackComponentizationFix$StackData;moveToComponent(Ljava/lang/String;Ljava/lang/String;Lcom/mojang/serialization/Dynamic;)V
intermediary method_57267
Lnet/minecraft/class_9267$class_9268;method_57267(Ljava/lang/String;Ljava/lang/String;Lcom/mojang/serialization/Dynamic;)V
official a
Lbem$a;a(Ljava/lang/String;Ljava/lang/String;Lcom/mojang/serialization/Dynamic;)V
-
moveToComponent
- Mappings:
Namespace Name Mixin selector named moveToComponent
Lnet/minecraft/datafixer/fix/ItemStackComponentizationFix$StackData;moveToComponent(Ljava/lang/String;Ljava/lang/String;)V
intermediary method_57266
Lnet/minecraft/class_9267$class_9268;method_57266(Ljava/lang/String;Ljava/lang/String;)V
official a
Lbem$a;a(Ljava/lang/String;Ljava/lang/String;)V
-
applyFixer
public void applyFixer(String nbtKey, boolean removeIfEmpty, UnaryOperator<com.mojang.serialization.Dynamic<?>> fixer) - Mappings:
Namespace Name Mixin selector named applyFixer
Lnet/minecraft/datafixer/fix/ItemStackComponentizationFix$StackData;applyFixer(Ljava/lang/String;ZLjava/util/function/UnaryOperator;)V
intermediary method_57268
Lnet/minecraft/class_9267$class_9268;method_57268(Ljava/lang/String;ZLjava/util/function/UnaryOperator;)V
official a
Lbem$a;a(Ljava/lang/String;ZLjava/util/function/UnaryOperator;)V
-
finalize
public com.mojang.serialization.Dynamic<?> finalize()- Overrides:
finalize
in classObject
- Mappings:
Namespace Name Mixin selector named finalize
Lnet/minecraft/datafixer/fix/ItemStackComponentizationFix$StackData;finalize()Lcom/mojang/serialization/Dynamic;
intermediary method_57256
Lnet/minecraft/class_9267$class_9268;method_57256()Lcom/mojang/serialization/Dynamic;
official a
Lbem$a;a()Lcom/mojang/serialization/Dynamic;
-
mergeLeftoverNbt
private static <T> com.mojang.serialization.Dynamic<T> mergeLeftoverNbt(com.mojang.serialization.Dynamic<T> data, com.mojang.serialization.Dynamic<?> leftoverNbt) - Mappings:
Namespace Name Mixin selector named mergeLeftoverNbt
Lnet/minecraft/datafixer/fix/ItemStackComponentizationFix$StackData;mergeLeftoverNbt(Lcom/mojang/serialization/Dynamic;Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
intermediary method_57258
Lnet/minecraft/class_9267$class_9268;method_57258(Lcom/mojang/serialization/Dynamic;Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
official a
Lbem$a;a(Lcom/mojang/serialization/Dynamic;Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
-
itemEquals
- Mappings:
Namespace Name Mixin selector named itemEquals
Lnet/minecraft/datafixer/fix/ItemStackComponentizationFix$StackData;itemEquals(Ljava/lang/String;)Z
intermediary method_57270
Lnet/minecraft/class_9267$class_9268;method_57270(Ljava/lang/String;)Z
official b
Lbem$a;b(Ljava/lang/String;)Z
-
itemMatches
- Mappings:
Namespace Name Mixin selector named itemMatches
Lnet/minecraft/datafixer/fix/ItemStackComponentizationFix$StackData;itemMatches(Ljava/util/Set;)Z
intermediary method_57269
Lnet/minecraft/class_9267$class_9268;method_57269(Ljava/util/Set;)Z
official a
Lbem$a;a(Ljava/util/Set;)Z
-
itemContains
- Mappings:
Namespace Name Mixin selector named itemContains
Lnet/minecraft/datafixer/fix/ItemStackComponentizationFix$StackData;itemContains(Ljava/lang/String;)Z
intermediary method_58054
Lnet/minecraft/class_9267$class_9268;method_58054(Ljava/lang/String;)Z
official c
Lbem$a;c(Ljava/lang/String;)Z
-