Place and locate structures through the api instead of the engine

Structure placement, its locator, the cave anchor resolver and the native start planner now take the pack world and its
running world, and StructurePlacing writes through the mantle stage context and the placement graph. Terrain carving
draws its noise from the pack's noise factory. The api gains clearBlock/clearAttached on PlacementTerrain,
RunningWorld.carvedAt and VanillaStructureContext.world; modules get the host's seed purposes through their world view.
This commit is contained in:
piexel committed 2026-11-10 02:54:54 +01:00
1 parent 5ab99210b2
commit 3d209b393c
47 files changed
+1957 -1127

No files matched your search

@@ -90,6 +90,16 @@ public abstract class ForwardingTerrain implements PlacementTerrain {
delegate.recordPlacement(x, y, z, placement);
}
@Override
public void clearBlock(int x, int y, int z) {
delegate.clearBlock(x, y, z);
}
@Override
public void clearAttached(int x, int y, int z) {
delegate.clearAttached(x, y, z);
}
@Override
public Optional<PlacementRecord> placementAt(int x, int y, int z) {
return delegate.placementAt(x, y, z);