Class ColumnHeightmap
Builds a column's surface heightmap (Java: BlockChunk.updateHeight): the world-Y of the highest
non-transparent block at each (x,z) cell, or the column floor when a cell is all air. Every one of
our placeholder blocks is opaque, so "non-transparent" is just "non-air" for now (a real block palette with
opacity data refines this later). The result is a ColumnBytePalette ready to
SerializeShortKeys() into SetColumn.Heightmap.
public static class ColumnHeightmap
- Inheritance
-
ColumnHeightmap
- Inherited Members
Methods
Build(IReadOnlyList<BlockChunk>, int)
Scan the column's cubes (bottom-to-top; cubes[i] is the cube at chunk-Y minChunkY + i) and
record the highest non-air block's world-Y per cell.
public static ColumnBytePalette Build(IReadOnlyList<BlockChunk> cubes, int minChunkY)
Parameters
cubesIReadOnlyList<BlockChunk>minChunkYint