The item stack to create the storage for.
Optionalsource: CompoundTagThe source compound tag to copy data from.
Readonly[toThe name of the nbt tag.
ReadonlysizeReadonlytypeThe nbt tag type of the data type.
Static Readonly[species]Returns an iterable of entries in the map.
Clear all tags from the storage.
Delete a tag from the storage.
The key of the tag to delete.
True if the tag was deleted, false otherwise.
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.
boolean indicating whether an element with the specified key exists or not.
Returns an iterable of keys in the map
Push tags to the storage.
The tags to push.
The instance storage itself for chaining.
Set a tag in the storage.
The key of the tag to set.
The value of the tag to set.
The instance storage itself for chaining.
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.
Create a new item stack instance storage.