Crate minedmap_types

Source
Expand description

Common types used by several MinedMap crates

Modules§

axis
Const generic AXIS arguments for coordinate types

Structs§

BlockCoord
A block coordinate relative to a chunk
ChunkArray
Generic array for data stored per chunk of a region
ChunkCoord
A chunk coordinate relative to a region
ChunkCoords
A pair of chunk coordinates relative to a region
LayerBlockArray
Generic array for data stored per block of a chunk layer
LayerBlockCoords
X and Z coordinates of a block in a chunk
SectionBlockCoords
X, Y and Z coordinates of a block in a chunk section
SectionY
A section Y coordinate

Constants§

BLOCKS_PER_CHUNK
Number of blocks per chunk in each dimension
BLOCK_BITS
Number of bits required to store a block coordinate
CHUNKS_PER_REGION
Number of chunks per region in each dimension
CHUNK_BITS
Number of bits required to store a chunk coordinate

Type Aliases§

BlockX
A block X coordinate relative to a chunk
BlockY
A block Y coordinate relative to a chunk section
BlockZ
A block Z coordinate relative to a chunk
ChunkX
A chunk X coordinate relative to a region
ChunkZ
A chunk Z coordinate relative to a region