Batch 7 stage 3: objects and placement through the api

The api describes a pack's objects and lets a module place one through the
pack's placement graph: PlaceableObject, PackObjects (PackResources.objects()),
ScaleMethod, and Placements.place(PlacementRun) on PackWorld with
PlacementTerrain, StructureVolumes and PlacementOutcome, which moves here from
the host. Stages read PlacementContext.placementTerrain() and input(type);
mantle stages get MantleGenerationContext.placementTerrain().

BlockRegistry gains rotate (BlockTurn), merge, withProperty and matches;
BlockTrait gains STORAGE; ModuleLog gains debugging(); PackSettings gains
resources(); RunningWorld gains placementAt. README, DESIGN and CONTRACTS
describe them, and the extension ledger drops ObjectHost and ObjectPlacement.
This commit is contained in:
piexel committed 2026-10-28 01:25:41 +01:00
1 parent 398f3879ae
commit f1eb619344
34 files changed
+423 -27

No files matched your search

@@ -1,6 +1,7 @@
package com.volmit.generation;
import com.volmit.mantle.Mantle;
import com.volmit.placement.PlacementTerrain;
import com.volmit.world.TerrainSampler;
/** Per-invocation inputs of the mantle pipeline for one chunk. Must not be retained after execution. */
@@ -14,4 +15,10 @@ public interface MantleGenerationContext extends ChunkContext {
/** The mantle of the chunk widened by the pipeline's reach, full height (heights 0 up to the dimension height). Writes outside it throw. */
Mantle mantle();
/**
* The mantle of the chunk and its reach as a world to place objects in ({@link com.volmit.placement.Placements}):
* its blocks are the mantle's planned blocks, and placements write theirs into the mantle.
*/
PlacementTerrain placementTerrain();
}