Package net.minecraft.util.datafix.fixes
Class ItemStackComponentizationFix.ItemStackData
java.lang.Object
net.minecraft.util.datafix.fixes.ItemStackComponentizationFix.ItemStackData
- Enclosing class:
ItemStackComponentizationFix
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprivate
ItemStackData
(String p_330519_, int p_328981_, com.mojang.serialization.Dynamic<?> p_329116_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
fixSubTag
(String p_334224_, boolean p_331760_, UnaryOperator<com.mojang.serialization.Dynamic<?>> p_335156_) boolean
hasComponent
(String p_329543_) boolean
boolean
private static <T> com.mojang.serialization.Dynamic
<T> mergeRemainder
(com.mojang.serialization.Dynamic<T> p_331283_, com.mojang.serialization.Dynamic<?> p_335645_) com.mojang.serialization.Dynamic
<?> moveTagInto
(String p_333380_, com.mojang.serialization.Dynamic<?> p_332781_, String p_332207_) void
moveTagToComponent
(String p_334513_, String p_335629_) void
moveTagToComponent
(String p_330725_, String p_334538_, com.mojang.serialization.Dynamic<?> p_328097_) read
(com.mojang.serialization.Dynamic<?> p_327873_) com.mojang.serialization.OptionalDynamic
<?> void
setComponent
(String p_334273_, com.mojang.serialization.Dynamic<?> p_334484_) void
setComponent
(String p_333518_, com.mojang.serialization.OptionalDynamic<?> p_335463_) com.mojang.serialization.Dynamic
<?> write()
-
Field Details
-
item
-
count
private final int count -
components
private com.mojang.serialization.Dynamic<?> components -
remainder
private final com.mojang.serialization.Dynamic<?> remainder -
tag
com.mojang.serialization.Dynamic<?> tag
-
-
Constructor Details
-
ItemStackData
private ItemStackData(String p_330519_, int p_328981_, com.mojang.serialization.Dynamic<?> p_329116_)
-
-
Method Details
-
read
public static Optional<ItemStackComponentizationFix.ItemStackData> read(com.mojang.serialization.Dynamic<?> p_327873_) -
removeTag
-
setComponent
-
setComponent
-
moveTagInto
-
moveTagToComponent
-
moveTagToComponent
-
fixSubTag
public void fixSubTag(String p_334224_, boolean p_331760_, UnaryOperator<com.mojang.serialization.Dynamic<?>> p_335156_) -
write
public com.mojang.serialization.Dynamic<?> write() -
mergeRemainder
private static <T> com.mojang.serialization.Dynamic<T> mergeRemainder(com.mojang.serialization.Dynamic<T> p_331283_, com.mojang.serialization.Dynamic<?> p_335645_) -
is
-
is
-
hasComponent
-