Optional
name: null | stringThe name of the tag, defaults to null.
Readonly
[toThe name of the nbt tag.
Readonly
sizeReadonly
typeThe nbt tag type of the data type.
Static
Readonly
[species]Returns an iterable of entries in the map.
true if an element in the Map existed and has been removed, or false if the element does not exist.
Returns an iterable of key, value pairs for every entry in the map.
boolean indicating whether an element with the specified key exists or not.
Returns an iterable of keys in the map
Convert the tag to a JSON object.
Returns an iterable of values in the map
Static
groupStatic
readRead the nbt tag from the stream.
The binary stream to read from.
The options for reading the tag.
Static
writeWrite the nbt tag to the stream.
The binary stream to write to.
The value of the tag to write.
The options for writing the tag.
Create a new CompoundTag instance.