Class ItemStackComponentizationFix.ItemStackData

java.lang.Object
net.minecraft.util.datafix.fixes.ItemStackComponentizationFix.ItemStackData
Enclosing class:
ItemStackComponentizationFix

static class ItemStackComponentizationFix.ItemStackData extends Object
  • Field Details

    • item

      private final String 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

      public com.mojang.serialization.OptionalDynamic<?> removeTag(String p_327670_)
    • setComponent

      public void setComponent(String p_334273_, com.mojang.serialization.Dynamic<?> p_334484_)
    • setComponent

      public void setComponent(String p_333518_, com.mojang.serialization.OptionalDynamic<?> p_335463_)
    • moveTagInto

      public com.mojang.serialization.Dynamic<?> moveTagInto(String p_333380_, com.mojang.serialization.Dynamic<?> p_332781_, String p_332207_)
    • moveTagToComponent

      public void moveTagToComponent(String p_330725_, String p_334538_, com.mojang.serialization.Dynamic<?> p_328097_)
    • moveTagToComponent

      public void moveTagToComponent(String p_334513_, String p_335629_)
    • 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

      public boolean is(String p_328447_)
    • is

      public boolean is(Set<String> p_332697_)
    • hasComponent

      public boolean hasComponent(String p_329543_)