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_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

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

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

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

      public com.mojang.serialization.Dynamic<?> moveTagInto(String p_330240_, com.mojang.serialization.Dynamic<?> p_330972_, String p_331818_)
    • moveTagToComponent

      public void moveTagToComponent(String p_331198_, String p_330485_, com.mojang.serialization.Dynamic<?> p_330981_)
    • moveTagToComponent

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

      public boolean is(String p_330700_)
    • is

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

      public boolean hasComponent(String p_332677_)