Surface for ported built-ins: VINE trait, canPlaceOn, the sampler's fluid height and upper dimension, the mantle's planned blocks, a chunk sampler that covers the neighbors, stage timings from the chunk runner

This commit is contained in:
piexel committed 2026-10-10 08:35:10 +02:00
1 parent f8d85dcd5e
commit 6c0c072afe
11 files changed
+139 -5

No files matched your search

@@ -1,6 +1,7 @@
package com.volmit.world;
import com.volmit.mantle.BlockBox;
import java.util.OptionalInt;
/** Read-only host sampling for the same pack snapshot as the invocation.
* X and Z are world coordinates; Y is the height above the dimension's bottom (0 = bottom).
@@ -11,4 +12,15 @@ public interface TerrainSampler {
BlockBox bounds();
TerrainSample column(int worldX, int worldZ);
BiomeSample biome(int worldX, int y, int worldZ);
/** The height up to which the host fills the world with fluid wherever the terrain lies lower, the sea level of the
* dimension: a column's {@link TerrainSample#fluidY()} is this height when its surface is below it.
*/
int fluidHeight();
/** Where another dimension stacked above this one begins in the column, when one does: generation of this
* dimension leaves that height and everything above it to the dimension above, so a module writes nothing there.
* Empty when nothing sits above. Outside the bounds it throws like {@link #column}.
*/
OptionalInt upperDimensionY(int worldX, int worldZ);
}