Creates a new sub chunk.
Optional
version: numberThe version of the sub chunk.
Optional
layers: BlockStorage[]The layers of the sub chunk.
The index of the sub chunk.
Readonly
layersThe layers of the sub chunk.
Readonly
versionThe version of the sub chunk.
Gets the block storage at the given index.
The index of the storage.
The block storage.
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 layer of the block.
The block state.
Checks if the sub chunk is empty.
True if the sub chunk is empty, false otherwise.
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.
Optional
layer: numberThe layer of the block.
Static
deserializeDeserializes the sub chunk.
The binary stream to read from.
Static
fromStatic
serializeSerializes the sub chunk.
The binary stream to write to.
Represents a sub chunk.