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_330523_, int p_331147_, com.mojang.serialization.Dynamic<?> p_331630_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
fixSubTag
(String p_330776_, boolean p_330566_, UnaryOperator<com.mojang.serialization.Dynamic<?>> p_330246_) boolean
hasComponent
(String p_332677_) boolean
boolean
private static <T> com.mojang.serialization.Dynamic
<T> mergeRemainder
(com.mojang.serialization.Dynamic<T> p_331175_, com.mojang.serialization.Dynamic<?> p_330435_) com.mojang.serialization.Dynamic
<?> moveTagInto
(String p_330240_, com.mojang.serialization.Dynamic<?> p_330972_, String p_331818_) void
moveTagToComponent
(String p_330961_, String p_330509_) void
moveTagToComponent
(String p_331198_, String p_330485_, com.mojang.serialization.Dynamic<?> p_330981_) read
(com.mojang.serialization.Dynamic<?> p_330273_) com.mojang.serialization.OptionalDynamic
<?> void
setComponent
(String p_330861_, com.mojang.serialization.Dynamic<?> p_331399_) void
setComponent
(String p_331000_, com.mojang.serialization.OptionalDynamic<?> p_332145_) 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_330523_, int p_331147_, com.mojang.serialization.Dynamic<?> p_331630_)
-
-
Method Details
-
read
public static Optional<ItemStackComponentizationFix.ItemStackData> read(com.mojang.serialization.Dynamic<?> p_330273_) -
removeTag
-
setComponent
-
setComponent
-
moveTagInto
-
moveTagToComponent
-
moveTagToComponent
-
fixSubTag
public void fixSubTag(String p_330776_, boolean p_330566_, UnaryOperator<com.mojang.serialization.Dynamic<?>> p_330246_) -
write
public com.mojang.serialization.Dynamic<?> write() -
mergeRemainder
private static <T> com.mojang.serialization.Dynamic<T> mergeRemainder(com.mojang.serialization.Dynamic<T> p_331175_, com.mojang.serialization.Dynamic<?> p_330435_) -
is
-
is
-
hasComponent
-