Optional
source: CompoundTag | EntityLevelStorageReadonly
[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 flags of the entity from the level storage.
An array of tuples containing ActorFlag and its boolean value.
Get the dynamic properties of the entity from the level storage.
An array of tuples containing property identifiers and their values.
Get the flags of the entity from the level storage.
An array of tuples containing ActorFlag and its boolean value.
Get the metadata of the entity from the level storage.
An array of DataItem instances representing the metadata.
Get the traits of the entity 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 attributes for the entity in the level storage.
An array of Attribute instances to set.
Set dynamic properties for the entity in the level storage.
An array of tuples containing property identifiers and their values.
Set flags for the entity in the level storage.
An array of tuples containing ActorFlag and its boolean value.
Set the entity identifier in the level storage.
The entity identifier to set, can be a string or EntityIdentifier.
Set metadata for the entity in the level storage.
An array of DataItem instances to set as metadata.
Set the position of the entity in the level storage.
The position to set as a Vector3f instance.
Set the rotation of the entity in the level storage.
The rotation to set as a Rotation instance.
Set traits for the entity in the level storage.
An array of trait identifiers to set.
Set the unique ID of the entity in the level storage.
The unique ID to set as a bigint.
Convert the tag to a JSON object.
Returns an iterable of values in the map
Static
fromInitialize the EntityLevelStorage from a buffer.
The buffer containing the serialized EntityLevelStorage data.
A new EntityLevelStorage 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 EntityLevelStorage to a buffer.
The EntityLevelStorage or CompoundTag to convert.
A Buffer containing the serialized EntityLevelStorage 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.