Creates a new block storage.
Optionalpalette: number[]The optional palette.
Optionalblocks: number[]The optional blocks.
Optionalsize: [number, number, number]The size of the block storage.
ReadonlyairThe air value of the storage.
ReadonlyblocksThe blocks of the storage.
ReadonlypaletteThe palette of the storage.
ReadonlysizeThe size of the block storage.
Static ReadonlyMAX_The total maximum chunk size.
Static ReadonlyMAX_The maximum chunk size in the x direction.
Static ReadonlyMAX_The maximum chunk size in the y direction.
Static ReadonlyMAX_The maximum chunk size in the z direction.
Calculates the index of the block position.
The x coordinate of the block.
The y coordinate of the block.
The z coordinate of the block.
The index of the block.
Gets the block state at the given coordinates.
The x coordinate of the block.
The y coordinate of the block.
The z coordinate of the block.
The block state.
Checks if the block storage is empty.
Sets the block state at the given coordinates.
The x coordinate of the block.
The y coordinate of the block.
The z coordinate of the block.
The block state.
StaticdeserializeDeserializes the block storage from a binary stream.
The binary stream to read from.
The block storage.
StaticserializeSerializes the block storage to a binary stream.
The binary stream to write to.
Represents a block storage.