Optionalsource: CompoundTagReadonly[toProtected ReadonlydynamicThe name of the nbt tag.
ReadonlysizeReadonlytypeThe nbt tag type of the data type.
Static Readonly[species]Protected Static ReadonlyDYNAMIC_The storage key for dynamic properties.
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.
OptionalthisArg: 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 all dynamic properties from the level storage.
An array of tuples containing property identifier and its value.
Get a dynamic property by its identifier.
The identifier of the dynamic property to retrieve.
The value of the dynamic property, or null if not found.
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.
Check if a dynamic property exists in the level storage.
The identifier of the dynamic property to check.
True if the property exists, false otherwise.
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.
Remove a dynamic property from the level storage.
The identifier of the dynamic property to remove.
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 a dynamic property in the level storage.
The identifier of the dynamic property to set.
The value of the dynamic property to set.
Set the entity identifier in the level storage.
The entity identifier to set, can be a string or EntityIdentifier.
Set the position of the player.
The new position to set for the player.
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
StaticgroupStaticreadRead the nbt tag from the stream.
The binary stream to read from.
Optionaloptions: ReadWriteOptionsThe options for reading the tag.
StaticwriteWrite the nbt tag to the stream.
The binary stream to write to.
The value of the tag to write.
Optionaloptions: ReadWriteOptionsThe options for writing the tag.
The dynamic properties map holding property identifiers and their corresponding CompoundTag representations.