Skip to main content

Module chunk

Module chunk 

Source

Modules§

partial
storage

Structs§

Chunk
A single chunk in a world (16*?*16 blocks).
Section
A section of a chunk, i.e. a 161616 block area.

Functions§

calculate_chunk_storage_range
Get the actual stored view distance for the selected view distance.
get_block_state_from_sections
Get the block state at the given position from a list of sections. Returns None if the position is out of bounds.
section_index
Get the index of where a section is in a chunk based on its y coordinate and the minimum y coordinate of the world.