Supply structure sea surface

- GenerationWritePolicy.seaSurface returns minHeight + fluidHeight and the first fluid of the dimension fluidPalette
- Dimensions with no sea fluid or a sea at the world floor return StructureSeaSurface.NONE
- Bukkit and modded structure stage policies supply the sea surface to native structure fitting
- Native fitter tests pass SeaSurface.NONE to keep their expectations
- FLATTEN descriptions state the sea-surface clamp and sea-fluid fill
- Schema digest recaptured for the description change
This commit is contained in:
Brian Neumann-Fopiano committed 2026-11-01 16:50:57 -05:00
1 parent 8bc1ed760e
commit 701b3191eb
11 files changed
+243 -121

No files matched your search

@@ -21,6 +21,7 @@ import art.arcane.volmlib.nativelib.terrain.structure.StructureLocateSearchAcces
import art.arcane.volmlib.nativelib.terrain.structure.StructurePalette;
import art.arcane.volmlib.nativelib.terrain.structure.StructurePlacementDecision;
import art.arcane.volmlib.nativelib.terrain.structure.StructureReferencePolicy;
import art.arcane.volmlib.nativelib.terrain.structure.StructureSeaSurface;
import art.arcane.volmlib.nativelib.terrain.structure.StructureVolumePolicy;
import art.arcane.volmlib.util.math.RNG;
@@ -124,6 +125,11 @@ final class ModdedNativeStructurePolicy implements NativeModdedStructureStage.Po
return (x, z) -> Engine.hostHeight(context, x, z, true) + context.getMinHeight();
}
@Override
public StructureSeaSurface seaSurface(Engine context) {
return GenerationWritePolicy.seaSurface(context);
}
@Override
public IntBinaryOperator worldgenHeight(Engine context, int runtimeMinY, boolean floor) {
return (x, z) -> Engine.hostHeight(context, x, z, floor) + runtimeMinY + 1;