Class ItemStackComponentizationFix.ItemStackData
java.lang.Object
net.minecraft.util.datafix.fixes.ItemStackComponentizationFix.ItemStackData
- Enclosing class:
ItemStackComponentizationFix
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateItemStackData(String item, int count, Dynamic<?> remainder) -
Method Summary
Modifier and TypeMethodDescriptionvoidfixSubTag(String key, boolean dontFixWhenFieldIsMissing, UnaryOperator<Dynamic<?>> function) booleanhasComponent(String id) booleanbooleanprivate static <T> Dynamic<T> mergeRemainder(Dynamic<T> itemStack, Dynamic<?> remainder) Dynamic<?> moveTagInto(String fromKey, Dynamic<?> target, String toKey) voidmoveTagToComponent(String key, String type) voidmoveTagToComponent(String key, String type, Dynamic<?> defaultValue) voidsetComponent(String type, Dynamic<?> value) voidsetComponent(String type, OptionalDynamic<?> optionalValue) Dynamic<?> write()
-
Field Details
-
item
-
count
private final int count -
components
-
remainder
-
tag
-
-
Constructor Details
-
ItemStackData
-
-
Method Details
-
read
-
removeTag
-
setComponent
-
setComponent
-
moveTagInto
-
moveTagToComponent
-
moveTagToComponent
-
fixSubTag
public void fixSubTag(String key, boolean dontFixWhenFieldIsMissing, UnaryOperator<Dynamic<?>> function) -
write
-
mergeRemainder
-
is
-
is
-
hasComponent
-