Expand description
utils
Functionsยง
- column_
base_ ๐height getBaseHeight(WORLD_SURFACE_WG)-compatible height scan. Usespreliminary_surface_level + 16as an upper bound to avoid scanning empty upper atmosphere, and the cell-based iterator so 8-corner density evaluations are shared across Y values in each cell.- column_
interpolated_ ๐density - Single-point
getInterpolatedDensity. Exposed forGenerationContext. - find_
solid_ ๐block_ below_ air - Finds the highest solid block below air in a single base-noise column.
- interpolated_
density ๐ - Evaluate terrain density at a single block position using cell-based
interpolation matching vanillaโs
NoiseChunk: inner functions at 8 cell corners, trilinear interpolation per channel, then outer operations. - iterate_
noise_ ๐column_ capped - Same as
iterate_noise_column_with_aquiferbut only scans Y values up tomax_y_inclusive. Used bybase_heightwith an estimate frompreliminary_surface_level + 16to skip empty upper atmosphere โ reducing cell-corner density evaluations from O(height) toO(estimate_depth). - iterate_
noise_ ๐column_ with_ aquifer - Matches vanillaโs
iterateNoiseColumn: iterates by Y cells, evaluating inner density functions at 8 cell corners, trilinearly interpolating each channel independently, then applying outer operations (squeeze, min, etc.) per-block viacombine_interpolated.