mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-28 16:54:04 +00:00
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:
1 parent
8bc1ed760e
commit
701b3191eb
11 files changed
+243
-121
No files matched your search
+6
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user