Optional
source: CompoundTag | BlockLevelStorageReadonly
[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 block from the level storage.
An array of tuples containing property identifiers and their values.
Get the block position from the storage.
The BlockPosition representing the block's coordinates.
Get the traits of the block 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 block in the level storage.
An array of tuples containing property identifiers and their values.
Set the block position in the storage.
The BlockPosition to set in the storage.
Set traits for the block 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 BlockLevelStorage from a buffer.
The buffer containing the serialized BlockLevelStorage data.
A new BlockLevelStorage 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 BlockLevelStorage to a buffer.
The BlockLevelStorage or CompoundTag to convert.
A Buffer containing the serialized BlockLevelStorage 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.