The carver, its fluid-support and orphan passes, CaveApplying and CarvedSpace
read and write IrisApi's carved-void layer instead of VolmLib matter slices.
Cave floors for the spawners are marked by the carve mantle stage through
PlacementTerrain.mark, from the planned voids; cave ceiling markers, which
nothing read, are gone. CaveApplying reads the 16 blocks around its chunk
through the chunk stage's mantle view, not only the neighbours already in
memory. MatterMantle and the module's Cavern are deleted.
The chunk random is seeded from a purpose seed and the chunk, the density from
StyledRange over the API noise factory, and VirtualHeightmap builds the virtual
heightmap from NoiseSampler. LegacyStreams and ObjectPlacement.hostForm, which
only served Iris's placement form, are removed. The chunk random and density
noise now differ from the old streams; heightmaps are unchanged.
SpawnCooldownBook holds when each spawner last fired in the world and in each
chunk and is saved with the world through a SavedKey. The SpawnCooldowns facade,
which only existed because API state was memory only, is gone.
Graph nodes take an optional part and their edits as one record, paths are
built from typed steps, and entries without a folder leave their group
empty.
ProceduralObjectGraph reads a procedural file as a tree: the object, its
parts (stem, blob, branches, cluster, group, shared), materials and
decorations, each with its settings types and the parts that can be
added under it. ProceduralObjectScenes implements EditableSceneView.
BiomePalettes lists each biome's surface, sea and cave ceiling layers,
its wall and its slab, and lays out the blocks one places at each depth.
It picks with each stage's own random (terrain, carve, post) and stacks
layers from the top as generation does, so the noise is seeded the same;
against a saved world the in-palette picks match (99.7% on Emberbark
Woods). Slope conditions are ignored and noted in the entry's facts.
The 37 part classes from v3e (dev) now live in engine/procedural, outside the host's own type
package, so the built-ins jar may register them as a resource kind. ProceduralObjectCatalog reads
iris:objects/procedural definitions from the pack's procedural/ folder and bakes their variants
per world (or detached, for reach); ObjectPool places procedural/<path> and procedural/<path>#<n>
keys like any object and warms them, and ObjectChunk keeps their baked leaves.
ProceduralValue reads its forms (number, range, keyframes, curve shape) through IrisApi's
@JsonForms codec instead of Gson. Trees: procedural/trees/ counts as a tree folder and
TreeGrowing reports every variant it places as a tree.
The v4-era kinds (tree, ruin, formation, coral, fungi, crystal), ProceduralPlacement,
ProceduralObjectSettings and PlacementSource are removed; ObjectPlacement is the one placement.
Ported from v3e (3ba277aa4). Overlapping objects wrote over each other
block by block, so one tree's leaves could cut another tree's trunk and
leave the top floating. Leaves now keep a log already placed there, as
in vanilla trees.
Ported from v3e (4be4f9774, 92a1fa645). An object placement can set a
separation in blocks: each chunk rolls one candidate spot, and it stands
only when no lower ranked candidate of a placement with the same objects
lies closer. Spots and ranks come from the world seed, the chunk and the
objects, so spacing holds across chunk, biome and region borders in any
generation order. A chanceStyle multiplies the chance by noise.
Palette layers, the decorator chance gate and carving child biomes
divide by their zoom or shrink factor only for a style without a seed;
a seeded style is read in plain blocks, so its own zoom is its only
scale and it lines up with every other reader of the same seed.
Ported from v3e a1bd24186. IrisApi 2914ed1, Iris 3b9012535.
37 types of the object, value, image, world and runtime packages (the image map
enums and exceptions, the registry list annotations, the engine data, the world
boundary and environment, the custom biome enums, IrisRange) are read by Iris
core alone. They keep their packages. The 11 that the module's structure model
or ObjectRotation also reads stay.
ObjectRun gives the placement's name and JSON to the run, iris:objects declares
the placement type with its JSON names, and placements are recorded as typed
PlacementRecords instead of key@id texts (Iris keeps the text form, so
StructurePlacementMarker moves to Iris). iris:loot gives the seed a container is
shuffled with and iris:terrain says it protects the floor. The five Iris-only
entity knobs are fields of the EntitySpec, so IrisEntityExtras is gone.
Iris no longer reads TreeGrowthSettings (ObjectPlacements.treeGrowth is
gone), so it and its TreeMode move to art.arcane.iris.modules.objects
beside TreeGrowing, the only reader.
All 50 @Snippet names become iris/<module>/<old name> (iris/decorant/
decorator, iris/objects/procedural-objects, ...), which the pack
snippet-path rule needs for a snippet type loaded from the jar.
43 types move from art.arcane.iris.builtin to art.arcane.iris.modules:
20 snippets (carve: CarvingEntry, CaveProfile; deposit: generator and
variant; floating: FloatingChildBiome; loot: BlockDrop; objects:
ProceduralObjectSettings and the coral, crystal, formation, fungus,
ruin and procedural tree types), the three floating enums and 20
helpers and enums beside them. TreeOverride, TreeSize,
AxisRotationClamp, the loot entry types and the spawn cluster stay:
ObjectPlacement, ObjectRotation, ObjectLoot and PlacementMarker hold
them, and an exposed type cannot hold a jar-only one.
FloatingWorld asks the running layout for a biome's height, and the island
stage paints sky biomes with TerrainSampler.skyBiome and
Mantle.setPlatformBiome. FloatingHost is deleted.
The object, floating and tree placers place through PackWorld.placements()
with their own ObjectRun input instead of ObjectHost. ObjectHost, ObjectChunk,
ObjectSink, the builtin PlaceableObject and the ObjectPlacement facade are
gone; objects come from PackResources.objects(), and Iris's chunk random,
density and heightmap noise from the LegacyStreams extension. Placement stage
constants move to modules.placement.PlacementStages, and smart bore debugging
is the dimension setting iris:blocks/debug-smart-bore. EdgeSimplex is a copy of
Iris's 2D simplex, pinned against it in Iris. Structure loot reads the
structure's tables through StructureHost until stage 4 moves the structures.
ObjectPlacement is the one placement type: accessors for every option, a
builder for placements made in code (build() copies, so later builder
changes never reach a built placement) and toBuilder() copies that keep
the source JSON and Iris's cached form. ObjectRotation carries the full
rotation logic, ScaleInterpolation replaces Iris's scale interpolator,
and the modules no longer register held types.
IrisStructure, IrisJigsawPiece, IrisJigsawPieceEntry, IrisJigsawPool, IrisJigsawConnector,
IrisJigsawWorkcell, IrisJigsawWorkcellArchetype and StructureResources move here from Iris core,
with IrisDirection (without its Bukkit helpers, which nothing used) and a KeyedResource base for
the key Iris sets when it reads a resource file. The kinds are iris:structure/structure, /pool and
/piece, registered by StructureModule.
StructureModule leaves the built-ins jar: Iris registers it with its own modules, because Iris's
jigsaw studio, importers and exporters read the resources it registers as the same classes, which
a jar's own copy of a class is not.
41 settings and helper types that only the built-ins jar reads move from
art.arcane.iris.builtin to art.arcane.iris.modules, which Iris does not
expose, and builtin-modules.txt packs them into the jar: the terrain
layers and palettes (BiomeLayers, LayerBlocks, TerrainPalettes,
ResolvedLayer and the terrain settings), the post, decorate, deposit,
carve, floating, loot, spawn and vanilla-feature settings. The exposed
package goes from 16,168 to 13,711 lines.
Types packs write as snippets stay exposed, with what they reference: a
snippet type the host does not share must live under its module's id,
which would move existing packs' snippet folders.
Finding 40. PlacementTerrain answers minWorldY() instead of minHeight()
and the object at a block as Optional<ResourceId> instead of a nullable
key; ObjectShape names its object by Optional<ResourceId>;
PlacementSettings' collisions are sets of object ids. The vacuum reads
its fill rock from the module's own TerrainPalettes and validate reads
BedrockSettings from the world's dimension, so PlacementTerrain loses
rockAt and hasBedrock and the host no longer reaches either type.
Finding 40, first step. IrisSeeds and LiveWorld are gone: seeds are
world.seed(IrisSeedPurposes.X), which Iris answers with its legacy
seeds, and the loot, spawn, effect and tree services read
world.running() (TerrainSampler, FeatureSettings, sky, highest block).
The block-biome rule is the module's BlockBiomes. ObjectHost loses its
layout and settings lookups (columnSettings, regionAt, biome and region
declarations, cave lava and fluid heights, upper objects, procedural):
object placing reads the chunk's terrain, settings and upper dimension,
and caches procedural objects in world state. Object loot moved to
ObjectHost.placedLoot; spawner cooldowns stay an Iris extension because
Iris persists them with the world. FloatingHost loses surfaceBiome and
biome(key) to the running layout and PackResources.
The structure fit memo is one JSON object of terrain and stilts.
Carving and floating settings implement world.LinkedBiomes and read the
dimension's bands through PackSettings.
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.