Make Y the height above the dimension's bottom everywhere in the API: document it, and drop GenerationContext.originY, which is always 0 now

This commit is contained in:
piexel committed 2026-10-08 14:50:04 +02:00
1 parent 33fc9adca9
commit 09afee8ae3
26 files changed
+91 -54

No files matched your search

+8
View File
@@ -83,6 +83,14 @@ declares each settings type once.
A feature whose settings class has exactly one option may be written as that option's value, such as
`"snow": 0.5` for `"snow": {"amount": 0.5}` or a bare list for a class holding one list.
## Coordinates
X and Z are world coordinates. Y is always the height above the dimension's bottom: 0 is the bottom block
of the dimension, whatever its minimum height is in the platform, so Y is never negative. This holds for
every API value that carries a height: terrain and biome samples, `BlockBox` bounds of the terrain
sampler, block views, placement edits and the mantle, hunks, block palettes and noise samplers. The host
converts to and from the platform's own Y at its boundary; modules never see it.
## Random streams
Stages and object generators draw from `com.volmit.random.WorldRandom`, an IrisApi type whose every