Skip to content

API reference / @jsprismarine/prismarine / blockentity/BlockEntity

blockentity/BlockEntity ​

Classes ​

Functions ​

clone() ​

clone(nbt): NBTTagCompound

Defined in: packages/prismarine/src/blockentity/BlockEntity.ts:102

A shallow copy. The children are shared, which is what makes retaining an unmodeled subtree free - nothing here ever mutates one, it only adds and removes top level keys.

Parameters ​

nbt ​

NBTTagCompound

Returns ​

NBTTagCompound

References ​

blockEntity ​

Renames and re-exports BlockEntity