Class NbtCompound

java.lang.Object
net.minecraft.nbt.NbtElement
net.minecraft.nbt.NbtCompound

public class NbtCompound extends NbtElement
Mappings:
Namespace Name
official dq
intermediary net/minecraft/class_322
named net/minecraft/nbt/NbtCompound
  • Field Details

    • data

      private Map<String,NbtElement> data
      Mappings:
      Namespace Name Mixin selector
      official b Ldq;b: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

    • write

      void write(DataOutput output) throws IOException
      Specified by:
      write in class NbtElement
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Led;a(Ljava/io/DataOutput;)V
      intermediary method_1650 Lnet/minecraft/class_605;method_1650(Ljava/io/DataOutput;)V
      named write Lnet/minecraft/nbt/NbtElement;write(Ljava/io/DataOutput;)V
    • read

      void read(DataInput input, int depth, PositionTracker tracker) throws IOException
      Specified by:
      read in class NbtElement
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Led;a(Ljava/io/DataInput;ILdy;)V
      intermediary method_1649 Lnet/minecraft/class_605;method_1649(Ljava/io/DataInput;ILnet/minecraft/class_1944;)V
      named read Lnet/minecraft/nbt/NbtElement;read(Ljava/io/DataInput;ILnet/minecraft/nbt/PositionTracker;)V
    • getKeys

      public Set<String> getKeys()
      Mappings:
      Namespace Name Mixin selector
      official c Ldq;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;
    • getType

      public byte getType()
      Specified by:
      getType in class NbtElement
      Mappings:
      Namespace Name Mixin selector
      official a Led;a()B
      intermediary method_1645 Lnet/minecraft/class_605;method_1645()B
      named getType Lnet/minecraft/nbt/NbtElement;getType()B
    • getSize

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

      public void put(String key, NbtElement nbt)
      Mappings:
      Namespace Name Mixin selector
      official a Ldq;a(Ljava/lang/String;Led;)V
      intermediary method_814 Lnet/minecraft/class_322;method_814(Ljava/lang/String;Lnet/minecraft/class_605;)V
      named put Lnet/minecraft/nbt/NbtCompound;put(Ljava/lang/String;Lnet/minecraft/nbt/NbtElement;)V
    • putByte

      public void putByte(String key, byte value)
      Mappings:
      Namespace Name Mixin selector
      official a Ldq;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 Ldq;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 a Ldq;a(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 Ldq;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 Ldq;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 Ldq;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 Ldq;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 Ldq;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 Ldq;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 Ldq;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 Ldq;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 Ldq;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
    • putBoolean

      public void putBoolean(String key, boolean bool)
      Mappings:
      Namespace Name Mixin selector
      official a Ldq;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
    • get

      public NbtElement get(String key)
      Mappings:
      Namespace Name Mixin selector
      official c Ldq;c(Ljava/lang/String;)Led;
      intermediary method_807 Lnet/minecraft/class_322;method_807(Ljava/lang/String;)Lnet/minecraft/class_605;
      named get Lnet/minecraft/nbt/NbtCompound;get(Ljava/lang/String;)Lnet/minecraft/nbt/NbtElement;
    • getType

      public byte getType(String key)
      Mappings:
      Namespace Name Mixin selector
      official d Ldq;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 Ldq;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 b Ldq;b(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 Ldq;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 Ldq;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 Ldq;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 Ldq;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 Ldq;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 Ldq;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 Ldq;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 Ldq;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 Ldq;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
    • getCompound

      public NbtCompound getCompound(String key)
      Mappings:
      Namespace Name Mixin selector
      official o Ldq;o(Ljava/lang/String;)Ldq;
      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 c Ldq;c(Ljava/lang/String;I)Ldw;
      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 p Ldq;p(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 q Ldq;q(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 class NbtElement
      Mappings:
      Namespace Name Mixin selector
      official toString Led;toString()Ljava/lang/String;
      intermediary toString Lnet/minecraft/class_605;toString()Ljava/lang/String;
      named toString Lnet/minecraft/nbt/NbtElement;toString()Ljava/lang/String;
    • isEmpty

      public boolean isEmpty()
      Overrides:
      isEmpty in class NbtElement
      Mappings:
      Namespace Name Mixin selector
      official method_4386 Ldq;method_4386()Z
      intermediary method_4386 Lnet/minecraft/class_322;method_4386()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 Ldq;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;
    • copy

      public NbtElement copy()
      Specified by:
      copy in class NbtElement
      Mappings:
      Namespace Name Mixin selector
      official b Led;b()Led;
      intermediary method_1651 Lnet/minecraft/class_605;method_1651()Lnet/minecraft/class_605;
      named copy Lnet/minecraft/nbt/NbtElement;copy()Lnet/minecraft/nbt/NbtElement;
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class NbtElement
      Mappings:
      Namespace Name Mixin selector
      official equals Led;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_605;equals(Ljava/lang/Object;)Z
      named equals Lnet/minecraft/nbt/NbtElement;equals(Ljava/lang/Object;)Z
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class NbtElement
      Mappings:
      Namespace Name Mixin selector
      official hashCode Led;hashCode()I
      intermediary hashCode Lnet/minecraft/class_605;hashCode()I
      named hashCode Lnet/minecraft/nbt/NbtElement;hashCode()I
    • write

      private static void write(String key, NbtElement nbt, DataOutput output) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Ldq;a(Ljava/lang/String;Led;Ljava/io/DataOutput;)V
      intermediary method_7343 Lnet/minecraft/class_322;method_7343(Ljava/lang/String;Lnet/minecraft/class_605;Ljava/io/DataOutput;)V
      named write Lnet/minecraft/nbt/NbtCompound;write(Ljava/lang/String;Lnet/minecraft/nbt/NbtElement;Ljava/io/DataOutput;)V
    • readByte

      private static byte readByte(DataInput input, PositionTracker tracker) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Ldq;a(Ljava/io/DataInput;Ldy;)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 Ldq;b(Ljava/io/DataInput;Ldy;)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;
    • readNbt

      static NbtElement readNbt(byte type, String name, DataInput input, int depth, PositionTracker tracker) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Ldq;a(BLjava/lang/String;Ljava/io/DataInput;ILdy;)Led;
      intermediary method_7341 Lnet/minecraft/class_322;method_7341(BLjava/lang/String;Ljava/io/DataInput;ILnet/minecraft/class_1944;)Lnet/minecraft/class_605;
      named readNbt Lnet/minecraft/nbt/NbtCompound;readNbt(BLjava/lang/String;Ljava/io/DataInput;ILnet/minecraft/nbt/PositionTracker;)Lnet/minecraft/nbt/NbtElement;
    • copyFrom

      public void copyFrom(NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official a Ldq;a(Ldq;)V
      intermediary method_10575 Lnet/minecraft/class_322;method_10575(Lnet/minecraft/class_322;)V
      named copyFrom Lnet/minecraft/nbt/NbtCompound;copyFrom(Lnet/minecraft/nbt/NbtCompound;)V