Batch 6, findings 41 and 42.
- PlatformKeys turns pack keys into ResourceIds and ContentKeys, dropping
a key that cannot be one with a warning once; random draws keep their
order, so loot and entities stay the same.
- Loot items and entities build the grouped ItemDrop and EntitySpec;
Iris-only entity knobs travel as the IrisEntityExtras extension.
- Settings name pack resources with @Ref(kind = ...); Iris structure-model
keys use the Iris extension @IrisStructureRef.
- Markers, sapling species and the upper dimension are ids.
Block lookups by key use BlockRegistry.find and decide themselves what an unknown
block means, as they did when resolve threw. Chunk stages take context.blocks();
world.minHeight() and start.bottomY() read minWorldY().
IrisModule is a Gradle Java build of its own. Its compile classpath is com.volmit:iris-api (never iris-host),
VolmLib (sibling checkout or the published coordinate, as Iris resolves it), Gson, Lombok and the JDK, all
compileOnly, with Iris's compiler options and Lombok config. check compiles every source and builds
build/libs/iris-builtins.jar from these classes with IrisApi's ModuleJarCheck; the jar is byte-identical to the
one Iris built before. Iris consumes it through the capability art.arcane:iris-builtins.
The 111 sources that need Iris itself move to Iris core: the layout model (biomes, regions, dimensions and
their types, generators, noise styles, expressions, images and image maps), the pack's objects, blocks and
matter objects, mods and compat filters, the structure model with its assembler, locator, fitting and placer
(behind StructureHost), and the object placers behind ObjectHost and FloatingHost. Nothing left here reaches
Iris core, engine, platform or util.
source-patterns.txt and the tasks that ran Iris's build (checkBuiltins, packageBuiltinModulesInIris,
builtinSourcesJar) are gone.
- BlocksModule writes through PlacementAccess.set(x, y, z, state) when
a block has no block entity; WrittenBlocks keeps positions and states.
- Hunk getters renamed to width(), height(), depth().
- Every facade is asked through IrisApi's extension point:
world.extension(...) for IrisSeeds, LiveWorld, ObjectHost,
FloatingHost and StructureHost, context.extension(...) for
ObjectPlacement and MatterMantle, settings.extension(...) for
reaches. The X.of(...) casts, the *.Source interfaces,
ObjectPlacement.current() and PlacementBinding are gone; IrisSeed is
an enum and IrisSeeds gives the seeds.
- Facades that worked from a thread binding take the invocation
context instead (ObjectHost.chunk, StructureHost.placeChunk,
FloatingHost's placements).
- Resources are looked up by kind and id; services, loot, spawns,
structures, objects, cave bands and LinkedBiomes use ResourceId.
- Value records are built with Optionals, starts are keyed by
StartKey, and deposits ask Mantle.isCarved.
- README describes the extension point and the chunk stage's matter.
Settings are read as SettingsStacks (dimension(), mostSpecific(),
values()) and levels are com.volmit.config.Level. Chunk coordinates
and centres come from the context's chunk helpers, surface heights
from TerrainSampler.surfaceHeight, and resources from the world.
Settings types register in one varargs call, and ObjectModule takes
its log from setup instead of keeping a field.
Every built-in module now sets up in one setup(ModuleSetup) body. Soft
edges take the stage constants, conditioned stages read their settings
through context.configured, mantle stages are the non-generic
MantleStage, and the slope and anchor producers return null once they
reject.
The built-ins jar is now packaged and checked by Iris's
:core:builtinModulesJar from core's own compiled classes and bundled
into the plugin, so it always fits the Iris it ships with.
builtinModulesJar here runs that task and copies the jar to build/libs;
the packaging, entry file and check tasks moved to Iris, with the
VolmLib include build they needed.
SurfaceFitting (structure fitting, still Iris's) has its own outset
instead of calling IrisObjectVacuum, which lives in the jar only: the
plugin no longer carries the jar's classes outside the jar.
iris:prepare (slope clip, rotation clamp), iris:validate (limit), iris:stilt, iris:vacuum and iris:blocks (replace) describe
their own classes; the host module iris:placement-settings is no longer needed.
iris:structure moves into the jar as a thin module: it declares the structure
placement settings and the mantle stage, and Iris places the structures through
a StructureHost facade. The structure model, assembler, locator, fitting and
placing stay host. The resource kinds become iris:structure-model/*, owned by
Iris's own module. StructurePlacement names its structures with
@Ref(Reference.PACK_STRUCTURE), so the exposed package names no host class.
CaveProfiles had no users and is removed.
FloatingModule, FloatingIslands, the island sampling and the floating object
placing move to the jar on IrisApi types. Iris answers through a FloatingHost
facade: surface biomes, biome lookups and heights, sky biome painting, object
footprints, shrinking and the placement of an object against an island face
(IslandAnchor). FloatingChildren becomes the per-world FloatingWorld,
IslandObjectPlacer the jar's IslandFace, and UndersideTurn turns a footprint the
way Iris's flipped rotation does. The island memos key columns by a Column
record instead of packed longs, whose Long hash collides along diagonals.
The generators build their variants on IrisApi block states through ObjectBuilder, which the host gives out
(ObjectHost.builder()), so a content plugin's block keeps its identity. Each world resolves its procedural
placements once (ObjectHost.procedural(settings, resolve)); the placements describe themselves (clamp, stilt)
and the host reads them as Iris placements. engine/object/procedural goes into iris-builtins.jar.
The "structures" lists of dimensions, regions and biomes are StructurePlacementSettings (iris:structure/placements):
StructurePlacement and NativeStructureSource with every option, default and description of IrisStructurePlacement and
IrisNativeStructure, and StructureAnchorMode, StructureDistribution and NativeStructureSuppression with their constants
in the same order (placement identities hash the ordinals). The host fields and classes are deleted, as is the
RegistryListStructure annotation only they used. Every reader asks StructurePlacementScope.placementsOf(owner); the
scope index of which levels declare placements lives in the world's state.
iris:prepare, anchor, validate, bore, blocks, stilt, vacuum and snow read the placement through the
ObjectPlacement facade of art.arcane.iris.builtin.placement (object size, settings, terrain questions, surface warp,
the block operations only the platform can do) and through IrisApi block states and traits, so they pass the jar check.
PreparedPlacement, ObjectSpinKernel and TransformedBounds move into the exposed prepare package, and IrisStages' SLOPE
output is an ObjectRotation and TRANSFORMS a PreparedPlacement. PlacementModules.all() goes.
StructureLocator.placed and VanillaStructures.startedStructures/locatableStarts/locateStart are answered from the
module's placement index. The Caffeine caches and their invalidate() are gone: each world builds its index once in
its state store, and a pack reload starts a new world. StructureReachability moves to Iris core, its only reader.
New module iris:vanilla-features (VanillaFeaturesModule, no stages): ImportedFeaturesSettings (key importedFeatures,
dimension; enabled, disabled, steps, disabledSteps as packs wrote them, steps as IrisApi DecorationStep) and the provider
ImportedFeatures (generates / generatesStep / generatesFeature, same rules as IrisImportedFeatureControl). The family rule
both importedFeatures and importedStructures use moves to art.arcane.iris.builtin.RegistryKeyFamily (ImportedStructures
calls it). Listed in builtin-modules.txt and source-patterns.txt. Deleted: IrisImportedFeatureControl, IrisDecorationStep,
NativeFeatureGenerationStatus and IrisDimension.importedFeatures. README.