Optional
source: CompoundTag | ItemStackLevelStorageReadonly
[toReadonly
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.
Executes a provided function once per each key/value pair in the Map, in insertion order.
Optional
thisArg: anyGet a nbt tag by its key.
The key of the tag to retrieve.
The tag associated with the key, or undefined if not found.
Get the dynamic properties of the item stack from the level storage.
An array of tuples containing property identifiers and their values.
Get the traits of the item stack from the level storage.
An array of trait identifiers.
boolean indicating whether an element with the specified key exists or not.
Returns an iterable of keys in the map
Add multiple tags to the compound tag.
An array of tags to add.
The current instance for method chaining.
Set a nbt tag with a specific key.
The key to associate with the tag.
The tag to set.
The current instance for method chaining.
Set dynamic properties for the item stack in the level storage.
An array of tuples containing property identifiers and their values.
Set traits for the item stack in the level storage.
An array of trait identifiers to set.
Convert the tag to a JSON object.
Returns an iterable of values in the map
Static
fromInitialize the ItemStackLevelStorage from a buffer.
The buffer containing the serialized ItemStackLevelStorage data.
A new ItemStackLevelStorage instance initialized from the buffer.
Static
groupStatic
readRead the nbt tag from the stream.
The binary stream to read from.
Optional
options: ReadWriteOptionsThe options for reading the tag.
Static
toConvert the ItemStackLevelStorage to a buffer.
The ItemStackLevelStorage or CompoundTag to convert.
A Buffer containing the serialized ItemStackLevelStorage data.
Static
writeWrite the nbt tag to the stream.
The binary stream to write to.
The value of the tag to write.
Optional
options: ReadWriteOptionsThe options for writing the tag.
The name of the nbt tag.