Commit Graph
3 Commits
Author SHA1 Message Date
piexel f1eb619344 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.
2026-10-28 01:25:41 +01:00
piexel 05f621d82d Batch 6 part 1: one bottom-Y name, no silently-wrong defaults, geometry package, blocks
Finding 43: PackWorld.minHeight(), PlatformStart.bottomY() and StructureFit.bottomY()
become minWorldY(), the name TerrainSampler already used, and none of them has a default.
FeatureSettings.declaredBy, TerrainSampler.surfaceBlock/upperDimension and
BlockRegistry.oreFor lose defaults that answered wrong for a host that forgot them.
BlockBox, BlockPosition and BlockFace move to com.volmit.geometry.

Finding 44: BlockRegistry keeps resolve(BlockSpec) and adds find(key), which is
empty for a block the platform lacks; resolve(String) and resolve(BlockState) go.
BlockTrait drops INVENTORY, BLOCK_ENTITY and NEEDS_UPDATE, which nothing asked;
BlockAccess.is answers every trait. GenerationContext.hunk(Class) becomes blocks().
2026-10-24 05:19:06 +02:00
piexel b6c2992752 Batch 4 of the API review: api and host artifacts, ModuleLoadException
- Split into Gradle subprojects api (com.volmit:iris-api) and host
  (com.volmit:iris-host). ExposedPackages never exposes com.volmit.host.
- One unchecked ModuleLoadException(moduleId, origin, message, cause)
  for every load error; messages unchanged.
- PlacementAccess.set(x, y, z, state) next to set(PlacedBlock).
- BlockState: precompiled patterns, withProperty copies once.
- Mantle and layer views are made once per invocation.
- Hunk getters are width(), height(), depth().
- Held types and host types are deprecated for removal at the cut-over.
- Docs: artifacts, one-or-more modules per jar, no option shorthand.
2026-10-24 04:19:39 +02:00