It runs a mantle stage conditioned on settings against the same stage without a condition, over
Iris's own ChunkModuleSettings with a biome border in every chunk, and prints the difference per
chunk. It runs only with IRIS_TIMING=1. Measured: about 31 us per chunk and conditioned settings
type, before Iris's cached region and biome stream reads, so the scan is left as it is.
Mantle.edit() is bridged: an edit buffers sets and removals across layers per block, its reads and
visits see them over the unchanged mantle, and commit() publishes them all, or none when a chunk it
touches was not prepared; the edit can then only be closed. While an edit is open the view itself only
reads, a second edit is refused and edits do not nest.
Module layers registered with the GENERATION lifetime are now removed when Iris cleans a generated
mantle chunk, in both the covered cleanup and the pregenerator's forced cleanup, as Iris deletes its own
transient slices (GenerationLayers). Persistent layers and layers no loaded module registers stay,
retaining ModuleLayerValues keeps them all, and a pack whose modules fail to load keeps its layers.
The three mantle components become per-runtime workers constructed from the engine, like CaveCarving:
ObjectPlacing, FloatingObjectPlacing and StructurePlacing, each with place(writer, x, z, context) and
reach(). New built-in mantle stages run them: iris:objects/place (after the caves), iris:floating/objects
(after objects) and iris:structure/place (after objects and floating objects). Each works out its reach
from the pack when it loads, as the component's radius used to be.
CarveModule no longer checks disabledComponents itself: Iris disables the cave stage's pass by its
CARVED flag like any other. Studio's disabledComponents list offers the flags of Iris's own mantle
stages, CARVED included again.
ModuleMantleComponent now runs one mantle stage. IrisEngineMantle builds one component per stage of the
pack's mantle graph, in resolved order, each its own pass, when first needed after a load or hotload,
so a pack mantle stage can order itself after Iris's objects and structures. A stage's radius is its
reach, worked out from the pack (IrisPackSettings: the dimension, its regions and biomes). Iris's own
stages keep the flags of the components they replace (CARVED, OBJECT, FLOATING_OBJECT, JIGSAW), so
disabledComponents keeps working; pack stages get custom flags in order (MantleStageFlags).
There is one mantle path now: the separately registered object, floating object and structure
components, IrisMantleComponent, the ComponentFlag annotation, registerComponent and
getObjectComponent are gone. Engine.getObjectsAt asks the runtime's ObjectPlacing.
MantleRunner.generate(stage, inputs, seed) runs one mantle stage for one chunk. The host runs every
mantle stage as its own pass in resolved order, so a stage sees what earlier stages wrote into the
chunks around it. Activation still follows requires(...): the runner collects the settings of the stage
and of everything it requires, and only those. Because the stages of one chunk now run in different
invocations, mantle stages have no output (Stage.mantle declares Void) and pass data on through
mantle layers.
A mantle stage whose reach depends on the pack declares reach(PackReach). The host works it out once
per pack load from PackSettings, every entry the dimension and its regions and biomes declare, with
ResolvedStage.reachBlocks(settings); a negative result fails naming the stage. Placement and chunk
stages may not declare one, and ResolvedGraph.reach() throws for a mantle pipeline that has one.
VeinModule now sizes its reach from the pack's longest vein.
The overworld pipeline becomes ten built-in modules with typed ordering: biome, terrain, carve, post,
floating, deposit, matter, decorant, perfection and custom. The world modes and the dimension's mode
setting are gone; a pack's mode key now gets the unknown-key warning.
iris:biome, iris:deposit and the cave planning of iris:carve are full ports. Deposits are settings of
their own (iris:deposit, written as "deposits": [...]) that stack: a chunk gets the dimension's, the
region's and the biome's at its centre column. Cave planning is a mantle stage with a reach of one
block, its work done by CaveCarving. The other stages wrap the existing actuators and modifiers.
Perfection no longer checks for an overworld.
EngineGeneration replaces the engine mode: it generates the mantle around a chunk, then runs the
pack's chunk graph, Iris's built-in stages included, and keeps the per-runtime state built-in stages
need. IrisChunk carries the biome hunk and multicore flag, IrisMantleChunk gives built-in mantle stages
Iris's mantle writer, and the module mantle component now runs as the first pass, where carving ran.
Built-in modules are loaded with Iris's pack object model as host types.
ModuleMantleComponent runs the mantle stages of every chunk the mantle prepares, after Iris's own
components, with a radius of the pipeline's declared reach; it is disabled while the pack has no mantle
stages. IrisModuleMantle gives stages Iris's mantle in world coordinates: every module layer of a block
is kept in one ModuleLayerValues slice, encoded with the layer's codec, and layers no loaded module
registers keep their bytes. Chunk stages read their own chunk's mantle.
Chunk stages now run where any column of the chunk configures their settings, and every level
(dimension, region, surface biome, placement) is its own entry: the most-specific-wins merge is gone.
Settings with one option accept a bare JSON value, Iris's pack object classes in built-in settings are
read with the pack's own Gson, and studio renders both: the shorthand as an alternative form and Iris
classes with Iris's own definitions.
Settings no longer resolve to one value per type. FeatureSettings.at(type, x, z) returns one entry per
level that declares the type at that column (dimension, region, surface biome, placement), each with
its level, source and value; levels stack and a module decides what several mean. Conditional stage
bodies receive every configured entry. Chunk and mantle runners collect a chunk's settings themselves,
so a stage runs when any column of the chunk configures it.
Work that writes the mantle or reaches beyond its chunk moves to a new MANTLE pipeline (Stage.mantle,
MantleRunner) that the host runs around a chunk before it generates. Chunk stages may no longer declare
a reach or mantle writes and see the mantle read-only.
Built-in settings may hold host types the host describes itself (ModuleHost.describingHostTypesIn,
ValueKind.HostKind); pack modules cannot. FeatureSchema.shorthand() names the only option of settings
packs may write as a bare value.
Boring and terrain bends cover the object's declared size, which can be
larger than the bounds of its blocks, so the placement area now reaches
whichever of the two is farther from the anchor.
- iris:perfection/surface does what IrisPerfectionModifier did on
overworld chunks: hide ores when the dimension asks, then remove
decorations whose block below cannot hold them until none is left.
- It runs in the pack's chunk graph on Iris's block hunk, after the
world mode's stages, so it now follows the custom block stage instead
of preceding it. ModeOverworld no longer registers it and
IrisPerfectionModifier is deleted.
- The passes run on the generating thread instead of fanning columns out
to the burst executor.
- IrisChunk gives Iris's built-in chunk stages the engine, Iris's block
hunk and the chunk context, bound on the generating thread while the
pack's chunk graph runs.
- iris:perfection joins the built-in modules every pack loads.
- PerfectionModuleTest runs it through the chunk graph.
- SchemaBuilder renders the settings the pack's modules add: each
feature at a dimension, region, biome or object placement becomes a
property under its id and, for built-ins, its alias, with a constraint
that an object holds only one of the two. Each settings class is one
definition; options carry their kind, bounds, defaults and
descriptions, and references complete from the same lists Iris's own
fields use.
- The code workspace writes a schema for each module snippet type under
snippet/<name>/.
- A pack whose modules fail to load gets no workspace; the error is
logged instead of writing schemas without the modules.
- PackModuleSet forgets loaded or failed modules once the jars in
<pack>/modules change, and the workspace then reloads the pack data, so
studio picks up rebuilt module jars. The studio hotload watcher now
also reacts to .jar files.
- Placement tests name Iris's built-in states by their own keys, since
those resolve once per JVM with whichever platform a test bound first.
- IrisObject.place runs the pack's resolved placement graph, Iris's
built-in placement modules included, with IrisApi's PlacementRunner
(ModuleObjectPlacement). The engine runtime no longer resolves
placement lifecycle plans.
- Writes go to an ObjectPlacerEdit, a buffer over the Iris object placer
that reads its own writes and reaches the placer only on commit: blocks,
then tile data and iris:marker markers, then the caller's listener. A
rejected placement writes nothing.
- The placement area is every column the object reaches in any rotation,
moved by its translation and surface warp, widened by one block and the
pipeline's reach, at any height.
- Each placement's seed mixes the world seed with the object key and the
requested position. Without an engine one draw from the caller's random
stands in for the world seed.
- Built-in stages read Iris's own placement inputs from IrisPlacement,
bound on the placing thread while the graph runs.
- Gson decodes the module settings of every object placement in pack
JSON, snippet placements included.
- Platform keys without a namespace read as Minecraft's.
- The built-in API package moved to the default module's source tree.
- The built-in placement is now eight IrisApi modules: iris:prepare,
iris:anchor, iris:validate, iris:bore, iris:blocks, iris:stilt,
iris:vacuum and iris:snow. Their stage constants and output types live
in art.arcane.iris.builtin, which packs see, the stage bodies beside
the placement settings they read.
- The modes stay in ObjectPlaceMode, which now names how each mode
samples its height and which stilt it grows; one graph serves them all.
- The block stages share one pass: the object's blocks are written and
the stilt layers found together. Snow and the vacuum bend read the
written blocks from the write stage's output.
- PlacementLifecycle, its builder, plans, stages and state, the
PlacementModule classes, ObjectBlockPass, IrisObjectPlacementRunner and
ObjectMarkerPlacement are deleted.
- IrisObject caches its geometry as IrisApi blocks and forgets it with
its other derived shapes whenever its blocks change.
- IrisObjectPlacement carries the module settings decoded with it.
- The vacuum radius is capped at the 128 blocks its settings allow, the
reach the vacuum stage declares.