Class NbtCompound

java.lang.Object
net.minecraft.nbt.NbtCompound
All Implemented Interfaces:
class_4373

public class NbtCompound extends Object implements class_4373
Mappings:
Namespace Name
official gy
intermediary net/minecraft/class_322
named net/minecraft/nbt/NbtCompound
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official f Lgy;f:Lorg/apache/logging/log4j/Logger;
      intermediary field_15347 Lnet/minecraft/class_322;field_15347:Lorg/apache/logging/log4j/Logger;
      named LOGGER Lnet/minecraft/nbt/NbtCompound;LOGGER:Lorg/apache/logging/log4j/Logger;
    • ALLOW_UNQUOTED_PATTERN

      private static final Pattern ALLOW_UNQUOTED_PATTERN
      Mappings:
      Namespace Name Mixin selector
      official g Lgy;g:Ljava/util/regex/Pattern;
      intermediary field_16244 Lnet/minecraft/class_322;field_16244:Ljava/util/regex/Pattern;
      named ALLOW_UNQUOTED_PATTERN Lnet/minecraft/nbt/NbtCompound;ALLOW_UNQUOTED_PATTERN:Ljava/util/regex/Pattern;
    • data

      private final Map<String,class_4373> data
      Mappings:
      Namespace Name Mixin selector
      official h Lgy;h:Ljava/util/Map;
      intermediary field_899 Lnet/minecraft/class_322;field_899:Ljava/util/Map;
      named data Lnet/minecraft/nbt/NbtCompound;data:Ljava/util/Map;
  • Constructor Details

    • NbtCompound

      public NbtCompound()
  • Method Details

    • method_1650

      public void method_1650(DataOutput dataOutput) throws IOException
      Specified by:
      method_1650 in interface class_4373
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lho;a(Ljava/io/DataOutput;)V
      intermediary method_1650 Lnet/minecraft/class_4373;method_1650(Ljava/io/DataOutput;)V
      named method_1650 Lnet/minecraft/class_4373;method_1650(Ljava/io/DataOutput;)V
    • method_1649

      public void method_1649(DataInput dataInput, int int2, PositionTracker positionTracker) throws IOException
      Specified by:
      method_1649 in interface class_4373
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lho;a(Ljava/io/DataInput;ILhh;)V
      intermediary method_1649 Lnet/minecraft/class_4373;method_1649(Ljava/io/DataInput;ILnet/minecraft/class_1944;)V
      named method_1649 Lnet/minecraft/class_4373;method_1649(Ljava/io/DataInput;ILnet/minecraft/nbt/PositionTracker;)V
    • getKeys

      public Set<String> getKeys()
      Mappings:
      Namespace Name Mixin selector
      official c Lgy;c()Ljava/util/Set;
      intermediary method_7347 Lnet/minecraft/class_322;method_7347()Ljava/util/Set;
      named getKeys Lnet/minecraft/nbt/NbtCompound;getKeys()Ljava/util/Set;
    • method_1645

      public byte method_1645()
      Specified by:
      method_1645 in interface class_4373
      Mappings:
      Namespace Name Mixin selector
      official a Lho;a()B
      intermediary method_1645 Lnet/minecraft/class_4373;method_1645()B
      named method_1645 Lnet/minecraft/class_4373;method_1645()B
    • getSize

      public int getSize()
      Mappings:
      Namespace Name Mixin selector
      official d Lgy;d()I
      intermediary method_12589 Lnet/minecraft/class_322;method_12589()I
      named getSize Lnet/minecraft/nbt/NbtCompound;getSize()I
    • method_814

      public void method_814(String string, class_4373 class_4373)
      Mappings:
      Namespace Name Mixin selector
      official a Lgy;a(Ljava/lang/String;Lho;)V
      intermediary method_814 Lnet/minecraft/class_322;method_814(Ljava/lang/String;Lnet/minecraft/class_4373;)V
      named method_814 Lnet/minecraft/nbt/NbtCompound;method_814(Ljava/lang/String;Lnet/minecraft/class_4373;)V
    • putByte

      public void putByte(String key, byte value)
      Mappings:
      Namespace Name Mixin selector
      official a Lgy;a(Ljava/lang/String;B)V
      intermediary method_808 Lnet/minecraft/class_322;method_808(Ljava/lang/String;B)V
      named putByte Lnet/minecraft/nbt/NbtCompound;putByte(Ljava/lang/String;B)V
    • putShort

      public void putShort(String key, short value)
      Mappings:
      Namespace Name Mixin selector
      official a Lgy;a(Ljava/lang/String;S)V
      intermediary method_816 Lnet/minecraft/class_322;method_816(Ljava/lang/String;S)V
      named putShort Lnet/minecraft/nbt/NbtCompound;putShort(Ljava/lang/String;S)V
    • putInt

      public void putInt(String key, int value)
      Mappings:
      Namespace Name Mixin selector
      official b Lgy;b(Ljava/lang/String;I)V
      intermediary method_811 Lnet/minecraft/class_322;method_811(Ljava/lang/String;I)V
      named putInt Lnet/minecraft/nbt/NbtCompound;putInt(Ljava/lang/String;I)V
    • putLong

      public void putLong(String key, long value)
      Mappings:
      Namespace Name Mixin selector
      official a Lgy;a(Ljava/lang/String;J)V
      intermediary method_812 Lnet/minecraft/class_322;method_812(Ljava/lang/String;J)V
      named putLong Lnet/minecraft/nbt/NbtCompound;putLong(Ljava/lang/String;J)V
    • putUuid

      public void putUuid(String key, UUID value)
      Mappings:
      Namespace Name Mixin selector
      official a Lgy;a(Ljava/lang/String;Ljava/util/UUID;)V
      intermediary method_12587 Lnet/minecraft/class_322;method_12587(Ljava/lang/String;Ljava/util/UUID;)V
      named putUuid Lnet/minecraft/nbt/NbtCompound;putUuid(Ljava/lang/String;Ljava/util/UUID;)V
    • getUuid

      @Nullable public UUID getUuid(String key)
      Mappings:
      Namespace Name Mixin selector
      official a Lgy;a(Ljava/lang/String;)Ljava/util/UUID;
      intermediary method_12586 Lnet/minecraft/class_322;method_12586(Ljava/lang/String;)Ljava/util/UUID;
      named getUuid Lnet/minecraft/nbt/NbtCompound;getUuid(Ljava/lang/String;)Ljava/util/UUID;
    • containsUuid

      public boolean containsUuid(String key)
      Mappings:
      Namespace Name Mixin selector
      official b Lgy;b(Ljava/lang/String;)Z
      intermediary method_12588 Lnet/minecraft/class_322;method_12588(Ljava/lang/String;)Z
      named containsUuid Lnet/minecraft/nbt/NbtCompound;containsUuid(Ljava/lang/String;)Z
    • putFloat

      public void putFloat(String key, float value)
      Mappings:
      Namespace Name Mixin selector
      official a Lgy;a(Ljava/lang/String;F)V
      intermediary method_810 Lnet/minecraft/class_322;method_810(Ljava/lang/String;F)V
      named putFloat Lnet/minecraft/nbt/NbtCompound;putFloat(Ljava/lang/String;F)V
    • putDouble

      public void putDouble(String key, double value)
      Mappings:
      Namespace Name Mixin selector
      official a Lgy;a(Ljava/lang/String;D)V
      intermediary method_809 Lnet/minecraft/class_322;method_809(Ljava/lang/String;D)V
      named putDouble Lnet/minecraft/nbt/NbtCompound;putDouble(Ljava/lang/String;D)V
    • putString

      public void putString(String key, String value)
      Mappings:
      Namespace Name Mixin selector
      official a Lgy;a(Ljava/lang/String;Ljava/lang/String;)V
      intermediary method_815 Lnet/minecraft/class_322;method_815(Ljava/lang/String;Ljava/lang/String;)V
      named putString Lnet/minecraft/nbt/NbtCompound;putString(Ljava/lang/String;Ljava/lang/String;)V
    • putByteArray

      public void putByteArray(String key, byte[] value)
      Mappings:
      Namespace Name Mixin selector
      official a Lgy;a(Ljava/lang/String;[B)V
      intermediary method_818 Lnet/minecraft/class_322;method_818(Ljava/lang/String;[B)V
      named putByteArray Lnet/minecraft/nbt/NbtCompound;putByteArray(Ljava/lang/String;[B)V
    • putIntArray

      public void putIntArray(String key, int[] value)
      Mappings:
      Namespace Name Mixin selector
      official a Lgy;a(Ljava/lang/String;[I)V
      intermediary method_819 Lnet/minecraft/class_322;method_819(Ljava/lang/String;[I)V
      named putIntArray Lnet/minecraft/nbt/NbtCompound;putIntArray(Ljava/lang/String;[I)V
    • method_20093

      public void method_20093(String string, List<Integer> list)
      Mappings:
      Namespace Name Mixin selector
      official b Lgy;b(Ljava/lang/String;Ljava/util/List;)V
      intermediary method_20093 Lnet/minecraft/class_322;method_20093(Ljava/lang/String;Ljava/util/List;)V
      named method_20093 Lnet/minecraft/nbt/NbtCompound;method_20093(Ljava/lang/String;Ljava/util/List;)V
    • method_20092

      public void method_20092(String string, long[] long2)
      Mappings:
      Namespace Name Mixin selector
      official a Lgy;a(Ljava/lang/String;[J)V
      intermediary method_20092 Lnet/minecraft/class_322;method_20092(Ljava/lang/String;[J)V
      named method_20092 Lnet/minecraft/nbt/NbtCompound;method_20092(Ljava/lang/String;[J)V
    • method_20094

      public void method_20094(String string, List<Long> list)
      Mappings:
      Namespace Name Mixin selector
      official c Lgy;c(Ljava/lang/String;Ljava/util/List;)V
      intermediary method_20094 Lnet/minecraft/class_322;method_20094(Ljava/lang/String;Ljava/util/List;)V
      named method_20094 Lnet/minecraft/nbt/NbtCompound;method_20094(Ljava/lang/String;Ljava/util/List;)V
    • putBoolean

      public void putBoolean(String key, boolean bool)
      Mappings:
      Namespace Name Mixin selector
      official a Lgy;a(Ljava/lang/String;Z)V
      intermediary method_817 Lnet/minecraft/class_322;method_817(Ljava/lang/String;Z)V
      named putBoolean Lnet/minecraft/nbt/NbtCompound;putBoolean(Ljava/lang/String;Z)V
    • method_807

      public class_4373 method_807(String string)
      Mappings:
      Namespace Name Mixin selector
      official c Lgy;c(Ljava/lang/String;)Lho;
      intermediary method_807 Lnet/minecraft/class_322;method_807(Ljava/lang/String;)Lnet/minecraft/class_4373;
      named method_807 Lnet/minecraft/nbt/NbtCompound;method_807(Ljava/lang/String;)Lnet/minecraft/class_4373;
    • getType

      public byte getType(String key)
      Mappings:
      Namespace Name Mixin selector
      official d Lgy;d(Ljava/lang/String;)B
      intermediary method_7345 Lnet/minecraft/class_322;method_7345(Ljava/lang/String;)B
      named getType Lnet/minecraft/nbt/NbtCompound;getType(Ljava/lang/String;)B
    • contains

      public boolean contains(String key)
      Mappings:
      Namespace Name Mixin selector
      official e Lgy;e(Ljava/lang/String;)Z
      intermediary method_820 Lnet/minecraft/class_322;method_820(Ljava/lang/String;)Z
      named contains Lnet/minecraft/nbt/NbtCompound;contains(Ljava/lang/String;)Z
    • contains

      public boolean contains(String key, int type)
      Mappings:
      Namespace Name Mixin selector
      official c Lgy;c(Ljava/lang/String;I)Z
      intermediary method_7346 Lnet/minecraft/class_322;method_7346(Ljava/lang/String;I)Z
      named contains Lnet/minecraft/nbt/NbtCompound;contains(Ljava/lang/String;I)Z
    • getByte

      public byte getByte(String key)
      Mappings:
      Namespace Name Mixin selector
      official f Lgy;f(Ljava/lang/String;)B
      intermediary method_822 Lnet/minecraft/class_322;method_822(Ljava/lang/String;)B
      named getByte Lnet/minecraft/nbt/NbtCompound;getByte(Ljava/lang/String;)B
    • getShort

      public short getShort(String key)
      Mappings:
      Namespace Name Mixin selector
      official g Lgy;g(Ljava/lang/String;)S
      intermediary method_823 Lnet/minecraft/class_322;method_823(Ljava/lang/String;)S
      named getShort Lnet/minecraft/nbt/NbtCompound;getShort(Ljava/lang/String;)S
    • getInt

      public int getInt(String key)
      Mappings:
      Namespace Name Mixin selector
      official h Lgy;h(Ljava/lang/String;)I
      intermediary method_824 Lnet/minecraft/class_322;method_824(Ljava/lang/String;)I
      named getInt Lnet/minecraft/nbt/NbtCompound;getInt(Ljava/lang/String;)I
    • getLong

      public long getLong(String key)
      Mappings:
      Namespace Name Mixin selector
      official i Lgy;i(Ljava/lang/String;)J
      intermediary method_825 Lnet/minecraft/class_322;method_825(Ljava/lang/String;)J
      named getLong Lnet/minecraft/nbt/NbtCompound;getLong(Ljava/lang/String;)J
    • getFloat

      public float getFloat(String key)
      Mappings:
      Namespace Name Mixin selector
      official j Lgy;j(Ljava/lang/String;)F
      intermediary method_826 Lnet/minecraft/class_322;method_826(Ljava/lang/String;)F
      named getFloat Lnet/minecraft/nbt/NbtCompound;getFloat(Ljava/lang/String;)F
    • getDouble

      public double getDouble(String key)
      Mappings:
      Namespace Name Mixin selector
      official k Lgy;k(Ljava/lang/String;)D
      intermediary method_827 Lnet/minecraft/class_322;method_827(Ljava/lang/String;)D
      named getDouble Lnet/minecraft/nbt/NbtCompound;getDouble(Ljava/lang/String;)D
    • getString

      public String getString(String key)
      Mappings:
      Namespace Name Mixin selector
      official l Lgy;l(Ljava/lang/String;)Ljava/lang/String;
      intermediary method_828 Lnet/minecraft/class_322;method_828(Ljava/lang/String;)Ljava/lang/String;
      named getString Lnet/minecraft/nbt/NbtCompound;getString(Ljava/lang/String;)Ljava/lang/String;
    • getByteArray

      public byte[] getByteArray(String key)
      Mappings:
      Namespace Name Mixin selector
      official m Lgy;m(Ljava/lang/String;)[B
      intermediary method_829 Lnet/minecraft/class_322;method_829(Ljava/lang/String;)[B
      named getByteArray Lnet/minecraft/nbt/NbtCompound;getByteArray(Ljava/lang/String;)[B
    • getIntArray

      public int[] getIntArray(String key)
      Mappings:
      Namespace Name Mixin selector
      official n Lgy;n(Ljava/lang/String;)[I
      intermediary method_830 Lnet/minecraft/class_322;method_830(Ljava/lang/String;)[I
      named getIntArray Lnet/minecraft/nbt/NbtCompound;getIntArray(Ljava/lang/String;)[I
    • method_20095

      public long[] method_20095(String string)
      Mappings:
      Namespace Name Mixin selector
      official o Lgy;o(Ljava/lang/String;)[J
      intermediary method_20095 Lnet/minecraft/class_322;method_20095(Ljava/lang/String;)[J
      named method_20095 Lnet/minecraft/nbt/NbtCompound;method_20095(Ljava/lang/String;)[J
    • getCompound

      public NbtCompound getCompound(String key)
      Mappings:
      Namespace Name Mixin selector
      official p Lgy;p(Ljava/lang/String;)Lgy;
      intermediary method_831 Lnet/minecraft/class_322;method_831(Ljava/lang/String;)Lnet/minecraft/class_322;
      named getCompound Lnet/minecraft/nbt/NbtCompound;getCompound(Ljava/lang/String;)Lnet/minecraft/nbt/NbtCompound;
    • getList

      public NbtList getList(String key, int type)
      Mappings:
      Namespace Name Mixin selector
      official d Lgy;d(Ljava/lang/String;I)Lhe;
      intermediary method_7348 Lnet/minecraft/class_322;method_7348(Ljava/lang/String;I)Lnet/minecraft/class_474;
      named getList Lnet/minecraft/nbt/NbtCompound;getList(Ljava/lang/String;I)Lnet/minecraft/nbt/NbtList;
    • getBoolean

      public boolean getBoolean(String key)
      Mappings:
      Namespace Name Mixin selector
      official q Lgy;q(Ljava/lang/String;)Z
      intermediary method_833 Lnet/minecraft/class_322;method_833(Ljava/lang/String;)Z
      named getBoolean Lnet/minecraft/nbt/NbtCompound;getBoolean(Ljava/lang/String;)Z
    • remove

      public void remove(String key)
      Mappings:
      Namespace Name Mixin selector
      official r Lgy;r(Ljava/lang/String;)V
      intermediary method_4387 Lnet/minecraft/class_322;method_4387(Ljava/lang/String;)V
      named remove Lnet/minecraft/nbt/NbtCompound;remove(Ljava/lang/String;)V
    • toString

      public String toString()
      Specified by:
      toString in interface class_4373
      Overrides:
      toString in class Object
      Mappings:
      Namespace Name Mixin selector
      official toString Lho;toString()Ljava/lang/String;
      intermediary toString Lnet/minecraft/class_4373;toString()Ljava/lang/String;
      named toString Lnet/minecraft/class_4373;toString()Ljava/lang/String;
    • isEmpty

      public boolean isEmpty()
      Mappings:
      Namespace Name Mixin selector
      official isEmpty Lgy;isEmpty()Z
      intermediary isEmpty Lnet/minecraft/class_322;isEmpty()Z
      named isEmpty Lnet/minecraft/nbt/NbtCompound;isEmpty()Z
    • addDetailsToCrashReport

      private CrashReport addDetailsToCrashReport(String key, int id, ClassCastException ex)
      Mappings:
      Namespace Name Mixin selector
      official a Lgy;a(Ljava/lang/String;ILjava/lang/ClassCastException;)Lb;
      intermediary method_4385 Lnet/minecraft/class_322;method_4385(Ljava/lang/String;ILjava/lang/ClassCastException;)Lnet/minecraft/class_1;
      named addDetailsToCrashReport Lnet/minecraft/nbt/NbtCompound;addDetailsToCrashReport(Ljava/lang/String;ILjava/lang/ClassCastException;)Lnet/minecraft/util/crash/CrashReport;
    • method_1651

      public NbtCompound method_1651()
      Specified by:
      method_1651 in interface class_4373
      Mappings:
      Namespace Name Mixin selector
      official f Lgy;f()Lgy;
      intermediary method_13470 Lnet/minecraft/class_322;method_13470()Lnet/minecraft/class_322;
      named method_1651 Lnet/minecraft/nbt/NbtCompound;method_1651()Lnet/minecraft/nbt/NbtCompound;
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      official equals Lgy;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_322;equals(Ljava/lang/Object;)Z
      named equals Lnet/minecraft/nbt/NbtCompound;equals(Ljava/lang/Object;)Z
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
      Mappings:
      Namespace Name Mixin selector
      official hashCode Lgy;hashCode()I
      intermediary hashCode Lnet/minecraft/class_322;hashCode()I
      named hashCode Lnet/minecraft/nbt/NbtCompound;hashCode()I
    • method_7343

      private static void method_7343(String string, class_4373 class_4373, DataOutput dataOutput) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lgy;a(Ljava/lang/String;Lho;Ljava/io/DataOutput;)V
      intermediary method_7343 Lnet/minecraft/class_322;method_7343(Ljava/lang/String;Lnet/minecraft/class_4373;Ljava/io/DataOutput;)V
      named method_7343 Lnet/minecraft/nbt/NbtCompound;method_7343(Ljava/lang/String;Lnet/minecraft/class_4373;Ljava/io/DataOutput;)V
    • readByte

      private static byte readByte(DataInput input, PositionTracker tracker) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lgy;a(Ljava/io/DataInput;Lhh;)B
      intermediary method_7342 Lnet/minecraft/class_322;method_7342(Ljava/io/DataInput;Lnet/minecraft/class_1944;)B
      named readByte Lnet/minecraft/nbt/NbtCompound;readByte(Ljava/io/DataInput;Lnet/minecraft/nbt/PositionTracker;)B
    • readString

      private static String readString(DataInput input, PositionTracker tracker) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official b Lgy;b(Ljava/io/DataInput;Lhh;)Ljava/lang/String;
      intermediary method_7344 Lnet/minecraft/class_322;method_7344(Ljava/io/DataInput;Lnet/minecraft/class_1944;)Ljava/lang/String;
      named readString Lnet/minecraft/nbt/NbtCompound;readString(Ljava/io/DataInput;Lnet/minecraft/nbt/PositionTracker;)Ljava/lang/String;
    • method_7341

      static class_4373 method_7341(byte byte2, String string, DataInput dataInput, int int2, PositionTracker positionTracker) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lgy;a(BLjava/lang/String;Ljava/io/DataInput;ILhh;)Lho;
      intermediary method_7341 Lnet/minecraft/class_322;method_7341(BLjava/lang/String;Ljava/io/DataInput;ILnet/minecraft/class_1944;)Lnet/minecraft/class_4373;
      named method_7341 Lnet/minecraft/nbt/NbtCompound;method_7341(BLjava/lang/String;Ljava/io/DataInput;ILnet/minecraft/nbt/PositionTracker;)Lnet/minecraft/class_4373;
    • method_10575

      public NbtCompound method_10575(NbtCompound nbtCompound)
      Mappings:
      Namespace Name Mixin selector
      official a Lgy;a(Lgy;)Lgy;
      intermediary method_10575 Lnet/minecraft/class_322;method_10575(Lnet/minecraft/class_322;)Lnet/minecraft/class_322;
      named method_10575 Lnet/minecraft/nbt/NbtCompound;method_10575(Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/nbt/NbtCompound;
    • escapeKey

      protected static String escapeKey(String string)
      Mappings:
      Namespace Name Mixin selector
      official s Lgy;s(Ljava/lang/String;)Ljava/lang/String;
      intermediary method_14749 Lnet/minecraft/class_322;method_14749(Ljava/lang/String;)Ljava/lang/String;
      named escapeKey Lnet/minecraft/nbt/NbtCompound;escapeKey(Ljava/lang/String;)Ljava/lang/String;
    • method_20096

      protected static Text method_20096(String string)
      Mappings:
      Namespace Name Mixin selector
      official t Lgy;t(Ljava/lang/String;)Lij;
      intermediary method_20096 Lnet/minecraft/class_322;method_20096(Ljava/lang/String;)Lnet/minecraft/class_1982;
      named method_20096 Lnet/minecraft/nbt/NbtCompound;method_20096(Ljava/lang/String;)Lnet/minecraft/text/Text;
    • method_20146

      public Text method_20146(String string, int int2)
      Specified by:
      method_20146 in interface class_4373
      Mappings:
      Namespace Name Mixin selector
      official a Lho;a(Ljava/lang/String;I)Lij;
      intermediary method_20146 Lnet/minecraft/class_4373;method_20146(Ljava/lang/String;I)Lnet/minecraft/class_1982;
      named method_20146 Lnet/minecraft/class_4373;method_20146(Ljava/lang/String;I)Lnet/minecraft/text/Text;