Module chunk

Module chunk 

Source

Structs§

Chunk
A vertical chunk, 16x16 blocks. This vertical chunk is composed of multiple SubChunks, each sub chunk has stores blocks, biomes, lights. This structure however stores metadata about the chunk like inhabited time and generation status. All entities and block entities are also stored in the chunk.
ChunkHeight
A little structure that stores the height of a level (and so a chunk).
SubChunk
A sub chunk, 16x16x16 blocks.
SubChunkBlocksIter
An efficient iterator over all blocks in a sub chunk.

Enums§

ChunkError
An error enumeration for all operations related to blocks and biomes on sub chunks and chunks. Check each variation for specific documentation.
ChunkStatus
An enumeration for the different generation status used by the game. Depending on the generation algorithm some status might not be used.

Constants§

BIOMES_DATA_SIZE
The total count of biomes samples for 3 dimensional biomes.
BLOCKS_DATA_SIZE
The total count of data for a 3 dimensional cube of SIZE.
SIZE
The number of blocks for each direction in sub chunks.

Type Aliases§

ChunkResult
A type alias with an error type of ChunkError.