mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-28 08:44:50 +00:00
Native structures respect rivers
- Supply hydrology water to the native structure stages through IrisStructureWater on the Bukkit and modded policies - Carry each native placement's allowWater on its start plan - Judge native placements by the columns their assembled pieces cover in the stage instead of by the start chunk at plan time - Apply the same start rule in the headless probe planner - Move Iris structure footprints and carves onto the shared StructureWaterRules and remove StructureWaterFootprint and StructureCarveWater - Add allowWater to the content-derived placement identity when set, so deduplicated native starts do not depend on list order - Pass dry water to native terrain integrator calls in the adapter tests
This commit is contained in:
1 parent
ba0bb1a2c0
commit
e4efd7800d
22 files changed
+264
-264
No files matched your search
+4
-2
@@ -1,5 +1,7 @@
|
||||
package art.arcane.iris.modded;
|
||||
|
||||
import art.arcane.volmlib.nativelib.terrain.structure.StructureWater;
|
||||
|
||||
import art.arcane.volmlib.nativelib.minecraft26_2.modded.ModdedNativeStructureWorldgenAccess;
|
||||
|
||||
import art.arcane.iris.structure.placement.IrisStructureTerrain;
|
||||
@@ -94,13 +96,13 @@ public class ModdedNativeStructureWorldgenAccessTest {
|
||||
unbounded.rejectDistantTerrainReads = true;
|
||||
|
||||
assertThrows(IllegalStateException.class, () -> NativeStructurePostProcessor.prepareTerrain(
|
||||
unbounded.world(), area, targets, (palette, rng, x, y, z) -> Blocks.STONE.defaultBlockState()));
|
||||
unbounded.world(), area, targets, (palette, rng, x, y, z) -> Blocks.STONE.defaultBlockState(), StructureWater.DRY));
|
||||
|
||||
RecordingDelegate recording = new RecordingDelegate();
|
||||
recording.rejectDistantTerrainReads = true;
|
||||
ModdedNativeStructureWorldgenAccess access = access(recording);
|
||||
NativeStructurePostProcessor.prepareTerrain(
|
||||
access, area, targets, (palette, rng, x, y, z) -> Blocks.STONE.defaultBlockState());
|
||||
access, area, targets, (palette, rng, x, y, z) -> Blocks.STONE.defaultBlockState(), StructureWater.DRY);
|
||||
|
||||
assertEquals(0, recording.heightReads);
|
||||
assertEquals(0, recording.chunkReads);
|
||||
|
||||
Reference in new issue
Block a user