Creates a new sub chunk.
Optionalversion: numberThe version of the sub chunk.
Optionallayers: BlockStorage[]The layers of the sub chunk.
The biomes of the sub chunk.
The index of the sub chunk.
ReadonlylayersThe layers of the sub chunk.
ReadonlyversionThe version of the sub chunk.
Get the biome at the given block position.
The x coordinate of the block.
The y coordinate of the block.
The z coordinate of the block.
The biome at the given block position.
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.
Set the biome at the given block position.
The x coordinate of the block.
The y coordinate of the block.
The z coordinate of the block.
The biome to set at the given block position.
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.
Optionallayer: numberThe layer of the block.
StaticdeserializeDeserializes the sub chunk.
The binary stream to read from.
StaticfromStaticserializeSerializes the sub chunk.
The binary stream to write to.
Represents a sub chunk.