Skip to main content

Module dimension

Module dimension 

Source
Expand description

Custom dimensions — dimension-type definitions and runtime chunk generation.

Structs§

GeneratedChunk
A chunk column a generator fills (the world/generation/chunk event, keyed by generator): where it is, and every block placed so far — a palette and a cell per block, like the game’s chunk sections, so the host sets them a section at a time. Several handlers fill one column in turn (terrain, then a mod’s ores).
YogDimensionDef
A dimension definition — what a mod registers to create a custom dimension, or to patch an existing (including vanilla) one. Sent as Yog Data via Registry::register_dimension (in yog-api); the host registers (or patches) a LevelStem/DimensionType entry from it at mod-init time.
YogDimensionTypeDef
Properties of a dimension type — mirrors Java’s YogDimensionType.

Constants§

CELL
Bytes per cell of GeneratedChunk::cells.
CHUNK_WIDTH
Blocks across a chunk column, in x and z.