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.config;
import com.volmit.IrisFeature;
import com.volmit.resource.PackResources;
import java.util.Optional;
/** Every settings declaration of the pack the host is loading, for what depends on the whole pack rather
@@ -16,6 +17,9 @@ public interface PackSettings {
*/
<F extends IrisFeature> SettingsStack<F> declared(Class<F> featureType);
/** The pack snapshot the settings were read from, such as for a reach that depends on the size of the pack's objects. */
PackResources resources();
/**
* What the host offers for the pack it is loading beyond the API, as an object of {@code type}: empty when it offers
* no such thing. The same door as {@link com.volmit.world.PackWorld#extension}, for what is worked out from the