mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-27 16:25:36 +00:00
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:
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();
|
||||
}
|
||||
Reference in new issue
Block a user