Class NbtCompound

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

public class NbtCompound
extends Object
implements NbtElement
Represents an NBT compound object which holds unordered key-value pairs with distinct case-sensitive string keys.
Mappings:
Namespace Name
official mv
intermediary net/minecraft/class_2487
named net/minecraft/nbt/NbtCompound
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<NbtCompound> CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Lmv;a:Lcom/mojang/serialization/Codec;
      intermediary field_25128 Lnet/minecraft/class_2487;field_25128:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/nbt/NbtCompound;CODEC:Lcom/mojang/serialization/Codec;
    • field_33190

      private static final int field_33190
      See Also:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official c Lmv;c:I
      intermediary field_33190 Lnet/minecraft/class_2487;field_33190:I
      named field_33190 Lnet/minecraft/nbt/NbtCompound;field_33190:I
    • field_33191

      private static final int field_33191
      See Also:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official w Lmv;w:I
      intermediary field_33191 Lnet/minecraft/class_2487;field_33191:I
      named field_33191 Lnet/minecraft/nbt/NbtCompound;field_33191:I
    • TYPE

      public static final NbtType<NbtCompound> TYPE
      Mappings:
      Namespace Name Mixin selector
      official b Lmv;b:Lnp;
      intermediary field_21029 Lnet/minecraft/class_2487;field_21029:Lnet/minecraft/class_4614;
      named TYPE Lnet/minecraft/nbt/NbtCompound;TYPE:Lnet/minecraft/nbt/NbtType;
    • entries

      private final Map<String,​NbtElement> entries
      Mappings:
      Namespace Name Mixin selector
      official x Lmv;x:Ljava/util/Map;
      intermediary field_11515 Lnet/minecraft/class_2487;field_11515:Ljava/util/Map;
      named entries Lnet/minecraft/nbt/NbtCompound;entries:Ljava/util/Map;
  • Constructor Details

    • NbtCompound

      protected NbtCompound​(Map<String,​NbtElement> entries)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lmv;<init>(Ljava/util/Map;)V
      intermediary <init> Lnet/minecraft/class_2487;<init>(Ljava/util/Map;)V
      named <init> Lnet/minecraft/nbt/NbtCompound;<init>(Ljava/util/Map;)V
    • NbtCompound

      public NbtCompound()
  • Method Details

    • write

      public void write​(DataOutput output) throws IOException
      Specified by:
      write in interface NbtElement
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lnn;a(Ljava/io/DataOutput;)V
      intermediary method_10713 Lnet/minecraft/class_2520;method_10713(Ljava/io/DataOutput;)V
      named write Lnet/minecraft/nbt/NbtElement;write(Ljava/io/DataOutput;)V
    • getKeys

      public Set<String> getKeys()
      Mappings:
      Namespace Name Mixin selector
      official d Lmv;d()Ljava/util/Set;
      intermediary method_10541 Lnet/minecraft/class_2487;method_10541()Ljava/util/Set;
      named getKeys Lnet/minecraft/nbt/NbtCompound;getKeys()Ljava/util/Set;
    • getType

      public byte getType()
      Gets the type of this NBT element.
      Specified by:
      getType in interface NbtElement
      Returns:
      the type
      Mappings:
      Namespace Name Mixin selector
      official a Lnn;a()B
      intermediary method_10711 Lnet/minecraft/class_2520;method_10711()B
      named getType Lnet/minecraft/nbt/NbtElement;getType()B
    • getNbtType

      public NbtType<NbtCompound> getNbtType()
      Gets the NBT type definition of this NBT element.
      Specified by:
      getNbtType in interface NbtElement
      Returns:
      the element type definition
      Mappings:
      Namespace Name Mixin selector
      official b Lnn;b()Lnp;
      intermediary method_23258 Lnet/minecraft/class_2520;method_23258()Lnet/minecraft/class_4614;
      named getNbtType Lnet/minecraft/nbt/NbtElement;getNbtType()Lnet/minecraft/nbt/NbtType;
    • getSize

      public int getSize()
      Mappings:
      Namespace Name Mixin selector
      official e Lmv;e()I
      intermediary method_10546 Lnet/minecraft/class_2487;method_10546()I
      named getSize Lnet/minecraft/nbt/NbtCompound;getSize()I
    • put

      @Nullable public @Nullable NbtElement put​(String key, NbtElement element)
      Mappings:
      Namespace Name Mixin selector
      official a Lmv;a(Ljava/lang/String;Lnn;)Lnn;
      intermediary method_10566 Lnet/minecraft/class_2487;method_10566(Ljava/lang/String;Lnet/minecraft/class_2520;)Lnet/minecraft/class_2520;
      named put Lnet/minecraft/nbt/NbtCompound;put(Ljava/lang/String;Lnet/minecraft/nbt/NbtElement;)Lnet/minecraft/nbt/NbtElement;
    • putByte

      public void putByte​(String key, byte value)
      Mappings:
      Namespace Name Mixin selector
      official a Lmv;a(Ljava/lang/String;B)V
      intermediary method_10567 Lnet/minecraft/class_2487;method_10567(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 Lmv;a(Ljava/lang/String;S)V
      intermediary method_10575 Lnet/minecraft/class_2487;method_10575(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 Lmv;a(Ljava/lang/String;I)V
      intermediary method_10569 Lnet/minecraft/class_2487;method_10569(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 Lmv;a(Ljava/lang/String;J)V
      intermediary method_10544 Lnet/minecraft/class_2487;method_10544(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)
      Writes a UUID to its NBT representation in this NbtCompound.
      Mappings:
      Namespace Name Mixin selector
      official a Lmv;a(Ljava/lang/String;Ljava/util/UUID;)V
      intermediary method_25927 Lnet/minecraft/class_2487;method_25927(Ljava/lang/String;Ljava/util/UUID;)V
      named putUuid Lnet/minecraft/nbt/NbtCompound;putUuid(Ljava/lang/String;Ljava/util/UUID;)V
    • getUuid

      public UUID getUuid​(String key)
      Reads a UUID from its NBT representation in this NbtCompound.
      Mappings:
      Namespace Name Mixin selector
      official a Lmv;a(Ljava/lang/String;)Ljava/util/UUID;
      intermediary method_25926 Lnet/minecraft/class_2487;method_25926(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)
      Returns true if this NbtCompound contains a valid UUID representation associated with the given key. A valid UUID is represented by an int array of length 4.
      Mappings:
      Namespace Name Mixin selector
      official b Lmv;b(Ljava/lang/String;)Z
      intermediary method_25928 Lnet/minecraft/class_2487;method_25928(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 Lmv;a(Ljava/lang/String;F)V
      intermediary method_10548 Lnet/minecraft/class_2487;method_10548(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 Lmv;a(Ljava/lang/String;D)V
      intermediary method_10549 Lnet/minecraft/class_2487;method_10549(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 Lmv;a(Ljava/lang/String;Ljava/lang/String;)V
      intermediary method_10582 Lnet/minecraft/class_2487;method_10582(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 Lmv;a(Ljava/lang/String;[B)V
      intermediary method_10570 Lnet/minecraft/class_2487;method_10570(Ljava/lang/String;[B)V
      named putByteArray Lnet/minecraft/nbt/NbtCompound;putByteArray(Ljava/lang/String;[B)V
    • putByteArray

      public void putByteArray​(String key, List<Byte> value)
      Mappings:
      Namespace Name Mixin selector
      official a Lmv;a(Ljava/lang/String;Ljava/util/List;)V
      intermediary method_36110 Lnet/minecraft/class_2487;method_36110(Ljava/lang/String;Ljava/util/List;)V
      named putByteArray Lnet/minecraft/nbt/NbtCompound;putByteArray(Ljava/lang/String;Ljava/util/List;)V
    • putIntArray

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

      public void putIntArray​(String key, List<Integer> value)
      Mappings:
      Namespace Name Mixin selector
      official b Lmv;b(Ljava/lang/String;Ljava/util/List;)V
      intermediary method_10572 Lnet/minecraft/class_2487;method_10572(Ljava/lang/String;Ljava/util/List;)V
      named putIntArray Lnet/minecraft/nbt/NbtCompound;putIntArray(Ljava/lang/String;Ljava/util/List;)V
    • putLongArray

      public void putLongArray​(String key, long[] value)
      Mappings:
      Namespace Name Mixin selector
      official a Lmv;a(Ljava/lang/String;[J)V
      intermediary method_10564 Lnet/minecraft/class_2487;method_10564(Ljava/lang/String;[J)V
      named putLongArray Lnet/minecraft/nbt/NbtCompound;putLongArray(Ljava/lang/String;[J)V
    • putLongArray

      public void putLongArray​(String key, List<Long> value)
      Mappings:
      Namespace Name Mixin selector
      official c Lmv;c(Ljava/lang/String;Ljava/util/List;)V
      intermediary method_10538 Lnet/minecraft/class_2487;method_10538(Ljava/lang/String;Ljava/util/List;)V
      named putLongArray Lnet/minecraft/nbt/NbtCompound;putLongArray(Ljava/lang/String;Ljava/util/List;)V
    • putBoolean

      public void putBoolean​(String key, boolean value)
      Mappings:
      Namespace Name Mixin selector
      official a Lmv;a(Ljava/lang/String;Z)V
      intermediary method_10556 Lnet/minecraft/class_2487;method_10556(Ljava/lang/String;Z)V
      named putBoolean Lnet/minecraft/nbt/NbtCompound;putBoolean(Ljava/lang/String;Z)V
    • get

      @Nullable public @Nullable NbtElement get​(String key)
      Mappings:
      Namespace Name Mixin selector
      official c Lmv;c(Ljava/lang/String;)Lnn;
      intermediary method_10580 Lnet/minecraft/class_2487;method_10580(Ljava/lang/String;)Lnet/minecraft/class_2520;
      named get Lnet/minecraft/nbt/NbtCompound;get(Ljava/lang/String;)Lnet/minecraft/nbt/NbtElement;
    • getType

      public byte getType​(String key)
      Gets the NBT type of the element stored at the specified key.
      Returns:
      the element NBT type, or NULL_TYPE if it does not exist
      Mappings:
      Namespace Name Mixin selector
      official d Lmv;d(Ljava/lang/String;)B
      intermediary method_10540 Lnet/minecraft/class_2487;method_10540(Ljava/lang/String;)B
      named getType Lnet/minecraft/nbt/NbtCompound;getType(Ljava/lang/String;)B
    • contains

      public boolean contains​(String key)
      Determines whether the NBT compound object contains the specified key.
      Returns:
      true if the key exists, else false
      Mappings:
      Namespace Name Mixin selector
      official e Lmv;e(Ljava/lang/String;)Z
      intermediary method_10545 Lnet/minecraft/class_2487;method_10545(Ljava/lang/String;)Z
      named contains Lnet/minecraft/nbt/NbtCompound;contains(Ljava/lang/String;)Z
    • contains

      public boolean contains​(String key, int type)
      Returns whether the NBT compound object contains an element of the specified type at the specified key.

      The type restriction can also be NUMBER_TYPE, which only allows any type of number.

      Returns:
      true if the key exists and the element type is equivalent to the given type, else false
      Mappings:
      Namespace Name Mixin selector
      official b Lmv;b(Ljava/lang/String;I)Z
      intermediary method_10573 Lnet/minecraft/class_2487;method_10573(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 Lmv;f(Ljava/lang/String;)B
      intermediary method_10571 Lnet/minecraft/class_2487;method_10571(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 Lmv;g(Ljava/lang/String;)S
      intermediary method_10568 Lnet/minecraft/class_2487;method_10568(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 Lmv;h(Ljava/lang/String;)I
      intermediary method_10550 Lnet/minecraft/class_2487;method_10550(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 Lmv;i(Ljava/lang/String;)J
      intermediary method_10537 Lnet/minecraft/class_2487;method_10537(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 Lmv;j(Ljava/lang/String;)F
      intermediary method_10583 Lnet/minecraft/class_2487;method_10583(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 Lmv;k(Ljava/lang/String;)D
      intermediary method_10574 Lnet/minecraft/class_2487;method_10574(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 Lmv;l(Ljava/lang/String;)Ljava/lang/String;
      intermediary method_10558 Lnet/minecraft/class_2487;method_10558(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 Lmv;m(Ljava/lang/String;)[B
      intermediary method_10547 Lnet/minecraft/class_2487;method_10547(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 Lmv;n(Ljava/lang/String;)[I
      intermediary method_10561 Lnet/minecraft/class_2487;method_10561(Ljava/lang/String;)[I
      named getIntArray Lnet/minecraft/nbt/NbtCompound;getIntArray(Ljava/lang/String;)[I
    • getLongArray

      public long[] getLongArray​(String key)
      Mappings:
      Namespace Name Mixin selector
      official o Lmv;o(Ljava/lang/String;)[J
      intermediary method_10565 Lnet/minecraft/class_2487;method_10565(Ljava/lang/String;)[J
      named getLongArray Lnet/minecraft/nbt/NbtCompound;getLongArray(Ljava/lang/String;)[J
    • getCompound

      public NbtCompound getCompound​(String key)
      Mappings:
      Namespace Name Mixin selector
      official p Lmv;p(Ljava/lang/String;)Lmv;
      intermediary method_10562 Lnet/minecraft/class_2487;method_10562(Ljava/lang/String;)Lnet/minecraft/class_2487;
      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 Lmv;c(Ljava/lang/String;I)Lnb;
      intermediary method_10554 Lnet/minecraft/class_2487;method_10554(Ljava/lang/String;I)Lnet/minecraft/class_2499;
      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 Lmv;q(Ljava/lang/String;)Z
      intermediary method_10577 Lnet/minecraft/class_2487;method_10577(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 Lmv;r(Ljava/lang/String;)V
      intermediary method_10551 Lnet/minecraft/class_2487;method_10551(Ljava/lang/String;)V
      named remove Lnet/minecraft/nbt/NbtCompound;remove(Ljava/lang/String;)V
    • toString

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

      public boolean isEmpty()
      Mappings:
      Namespace Name Mixin selector
      official f Lmv;f()Z
      intermediary method_33133 Lnet/minecraft/class_2487;method_33133()Z
      named isEmpty Lnet/minecraft/nbt/NbtCompound;isEmpty()Z
    • createCrashReport

      private CrashReport createCrashReport​(String key, NbtType<?> reader, ClassCastException classCastException)
      Mappings:
      Namespace Name Mixin selector
      official a Lmv;a(Ljava/lang/String;Lnp;Ljava/lang/ClassCastException;)Lq;
      intermediary method_10559 Lnet/minecraft/class_2487;method_10559(Ljava/lang/String;Lnet/minecraft/class_4614;Ljava/lang/ClassCastException;)Lnet/minecraft/class_128;
      named createCrashReport Lnet/minecraft/nbt/NbtCompound;createCrashReport(Ljava/lang/String;Lnet/minecraft/nbt/NbtType;Ljava/lang/ClassCastException;)Lnet/minecraft/util/crash/CrashReport;
    • copy

      public NbtCompound copy()
      Description copied from interface: NbtElement
      Copies this NBT element.
      Specified by:
      copy in interface NbtElement
      Returns:
      the copied element
      Mappings:
      Namespace Name Mixin selector
      official g Lmv;g()Lmv;
      intermediary method_10553 Lnet/minecraft/class_2487;method_10553()Lnet/minecraft/class_2487;
      named copy Lnet/minecraft/nbt/NbtCompound;copy()Lnet/minecraft/nbt/NbtCompound;
    • equals

      public boolean equals​(Object o)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      official equals Lmv;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_2487;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 Lmv;hashCode()I
      intermediary hashCode Lnet/minecraft/class_2487;hashCode()I
      named hashCode Lnet/minecraft/nbt/NbtCompound;hashCode()I
    • write

      private static void write​(String key, NbtElement element, DataOutput output) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lmv;a(Ljava/lang/String;Lnn;Ljava/io/DataOutput;)V
      intermediary method_10555 Lnet/minecraft/class_2487;method_10555(Ljava/lang/String;Lnet/minecraft/class_2520;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, NbtTagSizeTracker tracker) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official c Lmv;c(Ljava/io/DataInput;Lne;)B
      intermediary method_10542 Lnet/minecraft/class_2487;method_10542(Ljava/io/DataInput;Lnet/minecraft/class_2505;)B
      named readByte Lnet/minecraft/nbt/NbtCompound;readByte(Ljava/io/DataInput;Lnet/minecraft/nbt/NbtTagSizeTracker;)B
    • readString

      private static String readString​(DataInput input, NbtTagSizeTracker tracker) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official d Lmv;d(Ljava/io/DataInput;Lne;)Ljava/lang/String;
      intermediary method_10552 Lnet/minecraft/class_2487;method_10552(Ljava/io/DataInput;Lnet/minecraft/class_2505;)Ljava/lang/String;
      named readString Lnet/minecraft/nbt/NbtCompound;readString(Ljava/io/DataInput;Lnet/minecraft/nbt/NbtTagSizeTracker;)Ljava/lang/String;
    • read

      private static NbtElement read​(NbtType<?> reader, String key, DataInput input, int depth, NbtTagSizeTracker tracker)
      Mappings:
      Namespace Name Mixin selector
      official b Lmv;b(Lnp;Ljava/lang/String;Ljava/io/DataInput;ILne;)Lnn;
      intermediary method_10581 Lnet/minecraft/class_2487;method_10581(Lnet/minecraft/class_4614;Ljava/lang/String;Ljava/io/DataInput;ILnet/minecraft/class_2505;)Lnet/minecraft/class_2520;
      named read Lnet/minecraft/nbt/NbtCompound;read(Lnet/minecraft/nbt/NbtType;Ljava/lang/String;Ljava/io/DataInput;ILnet/minecraft/nbt/NbtTagSizeTracker;)Lnet/minecraft/nbt/NbtElement;
    • copyFrom

      public NbtCompound copyFrom​(NbtCompound source)
      Mappings:
      Namespace Name Mixin selector
      official a Lmv;a(Lmv;)Lmv;
      intermediary method_10543 Lnet/minecraft/class_2487;method_10543(Lnet/minecraft/class_2487;)Lnet/minecraft/class_2487;
      named copyFrom Lnet/minecraft/nbt/NbtCompound;copyFrom(Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/nbt/NbtCompound;
    • accept

      public void accept​(NbtElementVisitor visitor)
      Specified by:
      accept in interface NbtElement
      Mappings:
      Namespace Name Mixin selector
      official a Lnn;a(Lnr;)V
      intermediary method_32289 Lnet/minecraft/class_2520;method_32289(Lnet/minecraft/class_5627;)V
      named accept Lnet/minecraft/nbt/NbtElement;accept(Lnet/minecraft/nbt/visitor/NbtElementVisitor;)V
    • toMap

      protected Map<String,​NbtElement> toMap()
      Mappings:
      Namespace Name Mixin selector
      official h Lmv;h()Ljava/util/Map;
      intermediary method_29143 Lnet/minecraft/class_2487;method_29143()Ljava/util/Map;
      named toMap Lnet/minecraft/nbt/NbtCompound;toMap()Ljava/util/Map;