2021-03-18 15:17:51 -04:00
CLASS net/minecraft/class_2487 net/minecraft/nbt/NbtCompound
COMMENT Represents an NBT compound object which holds unordered key-value pairs with distinct case-sensitive string keys.
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;
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
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
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
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
2021-03-30 17:22:42 -04:00
COMMENT @return the element NBT type, or {@linkplain net.fabricmc.yarn.constants.NbtTypeIds#NULL NbtTypeIds.NULL} 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;
METHOD method_10542 readByte (Ljava/io/DataInput;Lnet/minecraft/class_2505;)B
2019-02-20 16:01:25 -05:00
ARG 0 input
ARG 1 tracker
2019-06-28 17:55:20 -04:00
METHOD method_10543 copyFrom (Lnet/minecraft/class_2487;)Lnet/minecraft/class_2487;
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
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
METHOD method_10547 getByteArray (Ljava/lang/String;)[B
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
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
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
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
2019-09-30 16:27:11 -04:00
ARG 1 key
2019-06-28 17:55:20 -04:00
METHOD method_10552 readString (Ljava/io/DataInput;Lnet/minecraft/class_2505;)Ljava/lang/String;
ARG 0 input
ARG 1 tracker
METHOD method_10554 getList (Ljava/lang/String;I)Lnet/minecraft/class_2499;
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_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
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;
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
2019-06-28 17:55:20 -04:00
METHOD method_10561 getIntArray (Ljava/lang/String;)[I
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;
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
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
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;
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
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
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
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
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
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
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-03-30 17:22:42 -04:00
COMMENT The type restriction can also be {@linkplain net.fabricmc.yarn.constants.NbtTypeIds#NUMBER NbtTypeIds.NUMBER}, 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
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
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
2019-09-30 16:27:11 -04:00
ARG 1 key
METHOD method_10580 get (Ljava/lang/String;)Lnet/minecraft/class_2520;
ARG 1 key
METHOD method_10581 read (Lnet/minecraft/class_4614;Ljava/lang/String;Ljava/io/DataInput;ILnet/minecraft/class_2505;)Lnet/minecraft/class_2520;
ARG 0 reader
2019-06-28 17:55:20 -04:00
ARG 1 key
ARG 2 input
ARG 3 depth
ARG 4 tracker
METHOD method_10582 putString (Ljava/lang/String;Ljava/lang/String;)V
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
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;
2021-03-18 15:17:51 -04:00
COMMENT Reads a {@link UUID} from its NBT representation in this {@code NbtCompound}.
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
2021-03-18 15:17:51 -04:00
COMMENT Writes a {@link UUID} to its NBT representation in this {@code NbtCompound}.
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
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;
2020-12-09 07:21:32 -05:00
METHOD method_33133 isEmpty ()Z