2021-03-18 15:17:51 -04:00
|
|
|
CLASS net/minecraft/class_2487 net/minecraft/nbt/NbtCompound
|
2022-05-11 14:28:23 -04:00
|
|
|
COMMENT Represents an NBT compound object. This mutable object holds unordered key-value pairs
|
|
|
|
COMMENT with distinct case-sensitive string keys. This can effectively be used like a
|
|
|
|
COMMENT {@code HashMap<String, NbtElement>}. Note that this <strong>does not</strong> implement
|
|
|
|
COMMENT {@link java.util.Map}. Its type is {@value NbtElement#COMPOUND_TYPE}. To get the compound
|
|
|
|
COMMENT as a map, use {@link #toMap()}.
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>There are two ways to use this compound; one is to create NBT instances yourself and use
|
|
|
|
COMMENT {@link #get(String)} or {@link #put(String, NbtElement)}. Manual casting is required in
|
|
|
|
COMMENT this case. The other, easier way is to use methods with type names, such as
|
|
|
|
COMMENT {@link #getInt(String)} or {@link #putInt(String, int)}. Where applicable, these methods
|
|
|
|
COMMENT return and accept Java types (e.g. {@code int}, {@code long[]}) instead of {@link NbtElement}
|
|
|
|
COMMENT subclasses. Note that there is no {@code putCompound} method, since you can just use the
|
|
|
|
COMMENT put method. These getters also have the advantage of providing type safety, because if
|
|
|
|
COMMENT type mismatch occurs or there is no such element in the compound, it returns the default
|
|
|
|
COMMENT value for that type instead of throwing or returning {@code null}.
|
2021-03-18 15:17:51 -04:00
|
|
|
FIELD field_11515 entries Ljava/util/Map;
|
|
|
|
FIELD field_21029 TYPE Lnet/minecraft/class_4614;
|
2020-08-14 16:30:20 -04:00
|
|
|
FIELD field_25128 CODEC Lcom/mojang/serialization/Codec;
|
2022-12-01 18:39:10 -05:00
|
|
|
FIELD field_41718 SIZE I
|
2019-09-30 16:27:11 -04:00
|
|
|
METHOD <init> (Ljava/util/Map;)V
|
2021-03-18 15:17:51 -04:00
|
|
|
ARG 1 entries
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD equals (Ljava/lang/Object;)Z
|
|
|
|
ARG 1 o
|
|
|
|
METHOD method_10537 getLong (Ljava/lang/String;)J
|
2022-05-11 14:28:23 -04:00
|
|
|
COMMENT {@return the {@code long} associated with {@code key}, or {@code 0L} if there is no number
|
|
|
|
COMMENT stored with the key}
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>If a non-long numeric value is stored, this will cast the value.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @see #putLong(String, long)
|
|
|
|
COMMENT @see AbstractNbtNumber#longValue()
|
2019-09-30 16:27:11 -04:00
|
|
|
ARG 1 key
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_10538 putLongArray (Ljava/lang/String;Ljava/util/List;)V
|
2022-05-11 14:28:23 -04:00
|
|
|
COMMENT Puts a list of longs to this compound. This copies the list.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @see #getLongArray(String)
|
|
|
|
COMMENT @see #putLongArray(String, long[])
|
2019-02-20 16:01:25 -05:00
|
|
|
ARG 1 key
|
2019-09-30 16:27:11 -04:00
|
|
|
ARG 2 value
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_10539 putIntArray (Ljava/lang/String;[I)V
|
2022-05-11 14:28:23 -04:00
|
|
|
COMMENT Puts an int array to this compound. This does not copy the array.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @see #getIntArray(String)
|
|
|
|
COMMENT @see #putIntArray(String, List)
|
2019-06-28 17:55:20 -04:00
|
|
|
ARG 1 key
|
2019-09-30 16:27:11 -04:00
|
|
|
ARG 2 value
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_10540 getType (Ljava/lang/String;)B
|
2021-03-18 15:17:51 -04:00
|
|
|
COMMENT Gets the {@linkplain NbtElement#getType NBT type} of the element stored at the specified key.
|
|
|
|
COMMENT
|
2022-01-29 14:00:44 -05:00
|
|
|
COMMENT @return the element NBT type, or {@link NbtElement#END_TYPE} if it does not exist
|
2019-09-30 16:27:11 -04:00
|
|
|
ARG 1 key
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_10541 getKeys ()Ljava/util/Set;
|
2022-05-11 14:28:23 -04:00
|
|
|
COMMENT {@return the set of keys in this compound}
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_10543 copyFrom (Lnet/minecraft/class_2487;)Lnet/minecraft/class_2487;
|
2022-05-11 14:28:23 -04:00
|
|
|
COMMENT Merges the entries of {@code source} to this compound. The passed compound will not
|
|
|
|
COMMENT be modified. If both compounds contain a compound with the same key, they will be
|
|
|
|
COMMENT merged; otherwise the values of this compound will be overwritten.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @return this compound with entries merged
|
2019-09-30 16:27:11 -04:00
|
|
|
ARG 1 source
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_10544 putLong (Ljava/lang/String;J)V
|
2022-05-11 14:28:23 -04:00
|
|
|
COMMENT Puts a {@code long} to this compound.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @see #getLong(String)
|
2019-02-20 16:01:25 -05:00
|
|
|
ARG 1 key
|
2019-09-30 16:27:11 -04:00
|
|
|
ARG 2 value
|
|
|
|
METHOD method_10545 contains (Ljava/lang/String;)Z
|
2021-03-18 15:17:51 -04:00
|
|
|
COMMENT Determines whether the NBT compound object contains the specified key.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @return {@code true} if the key exists, else {@code false}
|
2019-09-30 16:27:11 -04:00
|
|
|
ARG 1 key
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_10546 getSize ()I
|
2022-05-11 14:28:23 -04:00
|
|
|
COMMENT {@return the size of this compound}
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_10547 getByteArray (Ljava/lang/String;)[B
|
2022-05-11 14:28:23 -04:00
|
|
|
COMMENT {@return the byte array associated with {@code key}, or an empty byte array if there is no
|
|
|
|
COMMENT byte array stored with the key}
|
|
|
|
COMMENT
|
|
|
|
COMMENT @apiNote Modifying the returned array also modifies the NBT byte array.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @see #putByteArray(String, byte[])
|
|
|
|
COMMENT @see NbtByteArray#getByteArray()
|
2019-09-30 16:27:11 -04:00
|
|
|
ARG 1 key
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_10548 putFloat (Ljava/lang/String;F)V
|
2022-05-11 14:28:23 -04:00
|
|
|
COMMENT Puts a {@code float} to this compound.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @see #getFloat(String)
|
2019-02-20 16:01:25 -05:00
|
|
|
ARG 1 key
|
2019-09-30 16:27:11 -04:00
|
|
|
ARG 2 value
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_10549 putDouble (Ljava/lang/String;D)V
|
2022-05-11 14:28:23 -04:00
|
|
|
COMMENT Puts a {@code double} to this compound.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @see #getDouble(String)
|
2019-02-20 16:01:25 -05:00
|
|
|
ARG 1 key
|
2019-09-30 16:27:11 -04:00
|
|
|
ARG 2 value
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_10550 getInt (Ljava/lang/String;)I
|
2022-05-11 14:28:23 -04:00
|
|
|
COMMENT {@return the {@code int} associated with {@code key}, or {@code 0} if there is no number
|
|
|
|
COMMENT stored with the key}
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>If a non-integer numeric value is stored, this will cast the value.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @see #putInt(String, int)
|
|
|
|
COMMENT @see AbstractNbtNumber#intValue()
|
2019-09-30 16:27:11 -04:00
|
|
|
ARG 1 key
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_10551 remove (Ljava/lang/String;)V
|
2022-05-11 14:28:23 -04:00
|
|
|
COMMENT Removes the entry with the specified {@code key}. Does nothing if there is none.
|
2019-09-30 16:27:11 -04:00
|
|
|
ARG 1 key
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_10554 getList (Ljava/lang/String;I)Lnet/minecraft/class_2499;
|
2022-05-11 14:28:23 -04:00
|
|
|
COMMENT {@return the list associated with {@code key}, or an empty list if there is no
|
|
|
|
COMMENT list stored with the key and the type}
|
|
|
|
COMMENT
|
|
|
|
COMMENT @see #put(String, NbtElement)
|
2019-02-20 16:01:25 -05:00
|
|
|
ARG 1 key
|
2019-09-30 16:27:11 -04:00
|
|
|
ARG 2 type
|
2022-05-11 14:28:23 -04:00
|
|
|
COMMENT the expected held type of the list
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_10555 write (Ljava/lang/String;Lnet/minecraft/class_2520;Ljava/io/DataOutput;)V
|
2019-02-20 16:01:25 -05:00
|
|
|
ARG 0 key
|
2021-03-18 15:17:51 -04:00
|
|
|
ARG 1 element
|
2019-02-20 16:01:25 -05:00
|
|
|
ARG 2 output
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_10556 putBoolean (Ljava/lang/String;Z)V
|
2022-05-11 14:28:23 -04:00
|
|
|
COMMENT Puts a {@code boolean} to this compound. The value is stored as {@link NbtByte}.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @see #getBoolean(String)
|
2019-02-20 16:01:25 -05:00
|
|
|
ARG 1 key
|
2019-09-30 16:27:11 -04:00
|
|
|
ARG 2 value
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_10558 getString (Ljava/lang/String;)Ljava/lang/String;
|
2022-05-11 14:28:23 -04:00
|
|
|
COMMENT {@return the {@link String} associated with {@code key}, or an empty string if there is no
|
|
|
|
COMMENT string stored with the key}
|
|
|
|
COMMENT
|
|
|
|
COMMENT @see #putString(String, String)
|
|
|
|
COMMENT @see NbtElement#asString()
|
2019-09-30 16:27:11 -04:00
|
|
|
ARG 1 key
|
2019-09-27 12:23:24 -04:00
|
|
|
METHOD method_10559 createCrashReport (Ljava/lang/String;Lnet/minecraft/class_4614;Ljava/lang/ClassCastException;)Lnet/minecraft/class_128;
|
2019-02-20 16:01:25 -05:00
|
|
|
ARG 1 key
|
2021-03-18 15:17:51 -04:00
|
|
|
ARG 2 reader
|
2021-11-17 09:34:14 -05:00
|
|
|
ARG 3 exception
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_10561 getIntArray (Ljava/lang/String;)[I
|
2022-05-11 14:28:23 -04:00
|
|
|
COMMENT {@return the int array associated with {@code key}, or an empty int array if there is no
|
|
|
|
COMMENT int array stored with the key}
|
|
|
|
COMMENT
|
|
|
|
COMMENT @apiNote Modifying the returned array also modifies the NBT int array.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @see #putIntArray(String, int[])
|
|
|
|
COMMENT @see NbtIntArray#getIntArray()
|
2019-09-30 16:27:11 -04:00
|
|
|
ARG 1 key
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_10562 getCompound (Ljava/lang/String;)Lnet/minecraft/class_2487;
|
2022-05-11 14:28:23 -04:00
|
|
|
COMMENT {@return the compound associated with {@code key}, or an empty compound if there is no
|
|
|
|
COMMENT compound stored with the key}
|
|
|
|
COMMENT
|
|
|
|
COMMENT @see #put(String, NbtElement)
|
2019-09-30 16:27:11 -04:00
|
|
|
ARG 1 key
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_10564 putLongArray (Ljava/lang/String;[J)V
|
2022-05-11 14:28:23 -04:00
|
|
|
COMMENT Puts a long array to this compound. This does not copy the array.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @see #getLongArray(String)
|
|
|
|
COMMENT @see #putLongArray(String, List)
|
2019-02-20 16:01:25 -05:00
|
|
|
ARG 1 key
|
2019-09-30 16:27:11 -04:00
|
|
|
ARG 2 value
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_10565 getLongArray (Ljava/lang/String;)[J
|
2022-05-11 14:28:23 -04:00
|
|
|
COMMENT {@return the long array associated with {@code key}, or an empty long array if there is no
|
|
|
|
COMMENT long array stored with the key}
|
|
|
|
COMMENT
|
|
|
|
COMMENT @apiNote Modifying the returned array also modifies the NBT long array.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @see #putLongArray(String, long[])
|
|
|
|
COMMENT @see NbtLongArray#getLongArray()
|
2019-09-30 16:27:11 -04:00
|
|
|
ARG 1 key
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_10566 put (Ljava/lang/String;Lnet/minecraft/class_2520;)Lnet/minecraft/class_2520;
|
2022-05-11 14:28:23 -04:00
|
|
|
COMMENT Puts an element to this compound.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @return the previous value, or {@code null} if there was none
|
|
|
|
COMMENT @see #get(String)
|
2019-02-20 16:01:25 -05:00
|
|
|
ARG 1 key
|
2021-03-18 15:17:51 -04:00
|
|
|
ARG 2 element
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_10567 putByte (Ljava/lang/String;B)V
|
2022-05-11 14:28:23 -04:00
|
|
|
COMMENT Puts a {@code byte} to this compound.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @see #getByte(String)
|
2019-02-20 16:01:25 -05:00
|
|
|
ARG 1 key
|
2019-09-30 16:27:11 -04:00
|
|
|
ARG 2 value
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_10568 getShort (Ljava/lang/String;)S
|
2022-05-11 14:28:23 -04:00
|
|
|
COMMENT {@return the {@code short} associated with {@code key}, or {@code 0} if there is no number
|
|
|
|
COMMENT stored with the key}
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>If a non-short numeric value is stored, this will cast the value.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @see #putShort(String, short)
|
|
|
|
COMMENT @see AbstractNbtNumber#shortValue()
|
2019-09-30 16:27:11 -04:00
|
|
|
ARG 1 key
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_10569 putInt (Ljava/lang/String;I)V
|
2022-05-11 14:28:23 -04:00
|
|
|
COMMENT Puts an {@code int} to this compound.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @see #getInt(String)
|
2019-02-20 16:01:25 -05:00
|
|
|
ARG 1 key
|
2019-09-30 16:27:11 -04:00
|
|
|
ARG 2 value
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_10570 putByteArray (Ljava/lang/String;[B)V
|
2022-05-11 14:28:23 -04:00
|
|
|
COMMENT Puts a byte array to this compound. This does not copy the array.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @see #getByteArray(String)
|
|
|
|
COMMENT @see #putByteArray(String, List)
|
2019-02-20 16:01:25 -05:00
|
|
|
ARG 1 key
|
2019-09-30 16:27:11 -04:00
|
|
|
ARG 2 value
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_10571 getByte (Ljava/lang/String;)B
|
2022-05-11 14:28:23 -04:00
|
|
|
COMMENT {@return the {@code byte} associated with {@code key}, or {@code 0} if there is no number
|
|
|
|
COMMENT stored with the key}
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>If a non-byte numeric value is stored, this will cast the value.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @see #putByte(String, byte)
|
|
|
|
COMMENT @see AbstractNbtNumber#byteValue()
|
2019-09-30 16:27:11 -04:00
|
|
|
ARG 1 key
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_10572 putIntArray (Ljava/lang/String;Ljava/util/List;)V
|
2022-05-11 14:28:23 -04:00
|
|
|
COMMENT Puts a list of integers to this compound. This copies the list.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @see #getIntArray(String)
|
|
|
|
COMMENT @see #putIntArray(String, int[])
|
2019-02-20 16:01:25 -05:00
|
|
|
ARG 1 key
|
2019-09-30 16:27:11 -04:00
|
|
|
ARG 2 value
|
|
|
|
METHOD method_10573 contains (Ljava/lang/String;I)Z
|
2021-03-18 15:17:51 -04:00
|
|
|
COMMENT Returns whether the NBT compound object contains an element of the specified type at the specified key.
|
|
|
|
COMMENT <p>
|
2021-04-03 08:30:54 -04:00
|
|
|
COMMENT The type restriction can also be {@link NbtElement#NUMBER_TYPE NUMBER_TYPE}, which only allows any type of number.
|
2021-03-18 15:17:51 -04:00
|
|
|
COMMENT
|
|
|
|
COMMENT @return {@code true} if the key exists and the element type is equivalent to the given {@code type}, else {@code false}
|
2019-02-20 16:01:25 -05:00
|
|
|
ARG 1 key
|
2019-09-30 16:27:11 -04:00
|
|
|
ARG 2 type
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_10574 getDouble (Ljava/lang/String;)D
|
2022-05-11 14:28:23 -04:00
|
|
|
COMMENT {@return the {@code double} associated with {@code key}, or {@code 0.0} if there is
|
|
|
|
COMMENT no number stored with the key}
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>If a non-double numeric value is stored, this will cast the value.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @see #putDouble(String, double)
|
|
|
|
COMMENT @see AbstractNbtNumber#doubleValue()
|
2019-09-30 16:27:11 -04:00
|
|
|
ARG 1 key
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_10575 putShort (Ljava/lang/String;S)V
|
2022-05-11 14:28:23 -04:00
|
|
|
COMMENT Puts a {@code short} to this compound.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @see #getShort(String)
|
2019-02-20 16:01:25 -05:00
|
|
|
ARG 1 key
|
2019-09-30 16:27:11 -04:00
|
|
|
ARG 2 value
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_10577 getBoolean (Ljava/lang/String;)Z
|
2022-05-11 14:28:23 -04:00
|
|
|
COMMENT {@return the boolean value stored with the {@code key}}
|
|
|
|
COMMENT
|
|
|
|
COMMENT @implNote Since NBT does not have a boolean type, {@link NbtByte} is used instead. This
|
|
|
|
COMMENT method returns {@code true} for any values which, after casting to {@code byte} as
|
|
|
|
COMMENT described at {@link #getByte(String)}, is not {@code 0}. Since all non-numeric values
|
|
|
|
COMMENT become {@code 0} during casting to bytes, this method returns {@code false} for those
|
|
|
|
COMMENT as well. This includes values often considered truthy in other languages, such as a
|
|
|
|
COMMENT non-empty string or list.
|
2019-09-30 16:27:11 -04:00
|
|
|
ARG 1 key
|
|
|
|
METHOD method_10580 get (Ljava/lang/String;)Lnet/minecraft/class_2520;
|
2022-05-11 14:28:23 -04:00
|
|
|
COMMENT {@return the element associated with the key from this compound, or
|
|
|
|
COMMENT {@code null} if there is none}
|
|
|
|
COMMENT
|
|
|
|
COMMENT @apiNote This method does not provide type safety; if the type is known, it is
|
|
|
|
COMMENT recommended to use other type-specific methods instead.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @see #put(String, NbtElement)
|
2019-09-30 16:27:11 -04:00
|
|
|
ARG 1 key
|
2023-09-12 09:17:57 -04:00
|
|
|
METHOD method_10581 read (Lnet/minecraft/class_4614;Ljava/lang/String;Ljava/io/DataInput;Lnet/minecraft/class_2505;)Lnet/minecraft/class_2520;
|
2019-09-30 16:27:11 -04:00
|
|
|
ARG 0 reader
|
2019-06-28 17:55:20 -04:00
|
|
|
ARG 1 key
|
|
|
|
ARG 2 input
|
2023-10-22 01:47:34 -04:00
|
|
|
ARG 3 tracker
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_10582 putString (Ljava/lang/String;Ljava/lang/String;)V
|
2022-05-11 14:28:23 -04:00
|
|
|
COMMENT Puts a {@link String} to this compound.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @see #getString(String)
|
2019-06-28 17:55:20 -04:00
|
|
|
ARG 1 key
|
2019-09-30 16:27:11 -04:00
|
|
|
ARG 2 value
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_10583 getFloat (Ljava/lang/String;)F
|
2022-05-11 14:28:23 -04:00
|
|
|
COMMENT {@return the {@code float} associated with {@code key}, or {@code 0.0f} if there is
|
|
|
|
COMMENT no number stored with the key}
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>If a non-float numeric value is stored, this will cast the value.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @see #putFloat(String, float)
|
|
|
|
COMMENT @see AbstractNbtNumber#floatValue()
|
2019-09-30 16:27:11 -04:00
|
|
|
ARG 1 key
|
2020-05-27 16:05:45 -04:00
|
|
|
METHOD method_25926 getUuid (Ljava/lang/String;)Ljava/util/UUID;
|
2022-05-11 14:28:23 -04:00
|
|
|
COMMENT {@return a {@link UUID} from its NBT representation in this compound}
|
|
|
|
COMMENT
|
|
|
|
COMMENT @apiNote Unlike other specialized getters, this method can throw unchecked exceptions.
|
|
|
|
COMMENT It is therefore recommended to call {@link #containsUuid(String)} before getting the
|
|
|
|
COMMENT UUID.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @throws IllegalArgumentException if there is no value with the key or the value
|
|
|
|
COMMENT associated with the key is not a valid
|
|
|
|
COMMENT NBT representation of a UUID
|
|
|
|
COMMENT @see NbtHelper#toUuid(NbtIntArray)
|
|
|
|
COMMENT @see #containsUuid(String)
|
|
|
|
COMMENT @see #putUuid(String, UUID)
|
2020-03-08 07:23:54 -04:00
|
|
|
ARG 1 key
|
2020-05-27 16:05:45 -04:00
|
|
|
METHOD method_25927 putUuid (Ljava/lang/String;Ljava/util/UUID;)V
|
2022-05-11 14:28:23 -04:00
|
|
|
COMMENT Puts a {@link UUID}'s NBT representation to this compound.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @see NbtHelper#fromUuid(UUID)
|
|
|
|
COMMENT @see #containsUuid(String)
|
|
|
|
COMMENT @see #getUuid(String)
|
2020-03-08 07:23:54 -04:00
|
|
|
ARG 1 key
|
|
|
|
ARG 2 value
|
2020-05-27 16:05:45 -04:00
|
|
|
METHOD method_25928 containsUuid (Ljava/lang/String;)Z
|
2021-03-18 15:17:51 -04:00
|
|
|
COMMENT Returns {@code true} if this {@code NbtCompound} contains a valid UUID representation associated with the given key.
|
2020-03-08 07:23:54 -04:00
|
|
|
COMMENT A valid UUID is represented by an int array of length 4.
|
2019-09-30 16:27:11 -04:00
|
|
|
ARG 1 key
|
2023-09-12 10:39:11 -04:00
|
|
|
METHOD method_29141 (Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/DataResult;
|
|
|
|
ARG 0 dynamic
|
2021-03-18 15:17:51 -04:00
|
|
|
METHOD method_29142 (Lnet/minecraft/class_2487;)Lcom/mojang/serialization/Dynamic;
|
|
|
|
ARG 0 nbt
|
2020-08-14 16:30:20 -04:00
|
|
|
METHOD method_29143 toMap ()Ljava/util/Map;
|
2022-05-11 14:28:23 -04:00
|
|
|
COMMENT {@return the compound as an unmodifiable map}
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>Changes to this compound will be propagated to the returned map.
|
2020-12-09 07:21:32 -05:00
|
|
|
METHOD method_33133 isEmpty ()Z
|
2022-05-11 14:28:23 -04:00
|
|
|
COMMENT {@return whether the compound has no entries}
|
2021-04-02 08:01:06 -04:00
|
|
|
METHOD method_36110 putByteArray (Ljava/lang/String;Ljava/util/List;)V
|
2022-05-11 14:28:23 -04:00
|
|
|
COMMENT Puts a list of bytes to this compound. This copies the list.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @see #getByteArray(String)
|
|
|
|
COMMENT @see #putByteArray(String, byte[])
|
2021-04-02 08:01:06 -04:00
|
|
|
ARG 1 key
|
|
|
|
ARG 2 value
|
2023-09-12 10:39:11 -04:00
|
|
|
CLASS 1
|
|
|
|
METHOD method_53888 scanCompound (Ljava/io/DataInput;Lnet/minecraft/class_6836;Lnet/minecraft/class_2505;)Lnet/minecraft/class_6836$class_6838;
|
|
|
|
ARG 0 input
|
|
|
|
ARG 1 visitor
|
|
|
|
ARG 2 tracker
|
|
|
|
METHOD method_53889 readCompound (Ljava/io/DataInput;Lnet/minecraft/class_2505;)Lnet/minecraft/class_2487;
|
|
|
|
ARG 0 input
|
|
|
|
ARG 1 tracker
|
2023-09-15 10:44:06 -04:00
|
|
|
METHOD method_53907 readString (Ljava/io/DataInput;Lnet/minecraft/class_2505;)Ljava/lang/String;
|
|
|
|
ARG 0 input
|
|
|
|
ARG 1 tracker
|