IrisEngine warms modules after GenerationCacheWarmer for the first world (studio in
the background, server worlds synchronously) and after every hotload or in-place
restart; generation waits for all of them through GenerationCacheWarmGate.
IrisModuleHost no longer reserves the iris namespace. BuiltInPack can serve a pack folder whose
modules folder holds module jars, PackModuleJar writes jars of several modules, and
PackModuleJarNextToBuiltInsTest covers a jar of several modules in the iris namespace and a jar module
with a compiled-in built-in's id failing as a duplicate.
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.
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.
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.
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.
- 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.