Callers read them through LootResources and SpawnResources; the pack's loot check moved to iris:loot. RegistryMatter
asks its subclass how to load a key, the entity command handler lists entities through the module kind.
WorldEntitySpawner and MarkerSpawnScanner no longer read spawners, entities or markers: modules plan the spawns and
describe the entities as EntitySpec, BukkitEntitySpawner creates them and the host checks light, surface and free space.
Block-break marker cleanup asks the module what a marker means.
The module picks the tree placement and places it into a list of blocks; the host reads the world through
SaplingGrowth.Surroundings and applies the blocks. Custom (external) blocks in a grown tree are placed as their base
block.
EngineBukkitOps, WorldObjectPlacer and WorldBlockDropRouter no longer read loot classes: the modules name the tables and
return resolved ItemDrops, which BukkitItemStacks creates. LootResolver keeps the generic stream helpers; table
resolution moved to LootTables in iris:loot. IrisLootEvent carries the Loot sources.
The object search plan no longer reads IrisObjectPlacement: it builds its coarse sampler from the layout entries the
modules name and the biome tree it owns.
Drop StructureGraphCatalog.invalidate and IrisObjectScale.invalidate: the caches follow the pack's resource
snapshot and the module world. The scale cache test builds its engine's world state.
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.