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

@@ -7,9 +7,10 @@ import com.volmit.world.TerrainSampler;
/** Per-invocation chunk generation inputs. Must not be retained after execution. */
public interface GenerationContext extends InvocationContext {
/** World block coordinates corresponding to local volume coordinates (0, 0, 0). */
/** World coordinates of the local volume's first column. The volume starts at the dimension's bottom:
* local y is the height above it (0 = bottom block).
*/
int originX();
int originY();
int originZ();
TerrainSampler terrain();
@@ -6,7 +6,7 @@ import com.volmit.world.TerrainSampler;
/** Per-invocation inputs of the mantle pipeline for one chunk. Must not be retained after execution. */
public interface MantleGenerationContext extends InvocationContext {
/** The chunk's first block along X, in world coordinates. */
/** The chunk's first block along X, in world coordinates. Heights are above the dimension's bottom. */
int originX();
/** The chunk's first block along Z, in world coordinates. */
@@ -16,6 +16,6 @@ public interface MantleGenerationContext extends InvocationContext {
FeatureSettings settings();
/** The mantle of the chunk widened by the pipeline's reach, full height. Writes outside it throw. */
/** The mantle of the chunk widened by the pipeline's reach, full height (heights 0 up to the dimension height). Writes outside it throw. */
Mantle mantle();
}