TerrainChunk 5.46.0
Output of the terrain stage for one chunk: base materials per block and biome per 4x4x4 cell.
Constants
STAGE_CARVED
public const STAGE_CARVED = 2After the carvers (final blocks before features).
STAGE_MATERIALS
public const STAGE_MATERIALS = 1After the material rules (surface, bedrock, deepslate, ore veins...).
STAGE_TERRAIN
public const STAGE_TERRAIN = 0Base materials: Aquifer::MATERIAL_* (air, stone, water, lava).
Properties
$biomes
public array $biomesBiome index (ClimateBiomeTree names) per quart cell, index ((qx << 2) | qz) * (height >> 2) + (qy - minY / 4).
$carvingMask
public array $carvingMaskBlocks visited by the carvers (vanilla's carving mask), same index as $materials; empty before the carver stage.
$chunkX
public readonly int $chunkX$chunkZ
public readonly int $chunkZ$height
public readonly int $height$materialBytes
public ?string $materialBytesThe materials as one byte per block (same index as $materials), from the native core: then $materials is empty.
$materials
public array $materialsMaterial per block (Aquifer::MATERIAL_*), index ((x << 4) | z) * height + (y - minY).
$minY
public readonly int $minY$palette
public ?array $paletteJava block ids of the material ids, when they are not the generator's own material palette (native results).
$sections
public ?array $sectionsSubchunks packed by the native core, index 0 = subchunk minY >> 4: [bits per block, word array, palette of material ids] for PalettedBlockArray::fromData(), or null for a subchunk of air only. Then $materials is empty.
$stage
public int $stageGeneration stage the materials have reached (STAGE_*): the native core can return later stages.
Methods
__construct()
public function __construct(int $chunkX, int $chunkZ, int $minY, int $height)