Commit Graph
5247 Commits
Author SHA1 Message Date
piexel c9df155ee4 Move tree growth settings into the jar
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.
2026-10-28 02:26:04 +01:00
piexel 9e4ac30423 Follow the module snippet folders and the moved types
Pack validators read decorators from snippet/iris/decorant/decorator and
cave profiles from snippet/iris/carve/cave-profile. Fixture packs and
the procedural golden set move their snippet files to the new folders;
digests are unchanged. Tests import the moved types from
art.arcane.iris.modules.

EntityKeyHandler names the entity kind by id instead of importing
EntityDefinition (IrisPackResources gains ids(kindId)).

ObjectPlacementRegressionTest compares the namespaced void-air key, as
its other assertions do; it failed when an earlier test had initialized
IrisObject.States under a platform with bare keys.
2026-10-28 02:22:22 +01:00
piexel 826e942123 Move jar-only snippet types out of the exposed package
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.
2026-10-28 02:22:19 +01:00
piexel 0347e106c3 Name built-in snippets under their module's id
DESIGN drops the rule that built-in classes keep Iris's short snippet
folder names. Iris's own module types now name their snippets
iris/<module>/<name>, the same rule pack modules follow, so a type the
host does not share can carry a snippet too.
2026-10-28 02:22:14 +01:00
piexel 7471f9fc42 Batch 7 stage 4a: host biome height, sky biome and platform biome writes
IrisTerrainSampler answers biomeHeight and skyBiome the way IrisFloatingHost
did; IrisModuleMantle stores setPlatformBiome as the custom biome inject the
biome pass reads. IrisFloatingHost is deleted. A new test pins that sky and
custom biome picks ignore the random when an engine is given, which is why
the api takes none.
2026-10-28 01:58:50 +01:00
piexel 14acc4f37b Batch 7 stage 4a: floating islands shape and paint through the api
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.
2026-10-28 01:58:47 +01:00
piexel 95582abb6e Batch 7 stage 4a: biome height, sky biome and platform biome writes
TerrainSampler.biomeHeight and skyBiome answer for a pack biome at any
column; Mantle.setPlatformBiome makes a block show a platform biome, inside
a chunk stage's own chunk. These replace the module's FloatingHost facade.
README, DESIGN (ledger drops FloatingHost) and CONTRACTS updated.
2026-10-28 01:58:46 +01:00
piexel c0ed5ed81e Batch 7 stage 3: host the api object model and placement service
IrisPlacements runs the pack's placement graph for PlacementRun over a
PlacerTerrain (an IObjectPlacer seen as an api PlacementTerrain) through
TerrainEdit; ModuleObjectPlacement uses it for Iris's own placements. Iris
offers IrisPackObjects, IrisLegacyStreams and the api block operations
(rotate, merge, withProperty, matches), and IrisObject is an api
PlaceableObject. IrisObjectHost, IrisObjectChunk, IrisObjectBuilder, the
placement facades, the placers they used (heightmap, sink, decay, island,
golden debug, cave and floating transactions) and IrisDimension.debugSmartBore
are gone. Tests follow; EdgeSimplexPinTest pins the module's simplex copy.
2026-10-28 01:25:49 +01:00
piexel a13593f16e Batch 7 stage 3: object placing runs on the api
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.
2026-10-28 01:25:45 +01:00
piexel f1eb619344 Batch 7 stage 3: objects and placement through the api
The api describes a pack's objects and lets a module place one through the
pack's placement graph: PlaceableObject, PackObjects (PackResources.objects()),
ScaleMethod, and Placements.place(PlacementRun) on PackWorld with
PlacementTerrain, StructureVolumes and PlacementOutcome, which moves here from
the host. Stages read PlacementContext.placementTerrain() and input(type);
mantle stages get MantleGenerationContext.placementTerrain().

BlockRegistry gains rotate (BlockTurn), merge, withProperty and matches;
BlockTrait gains STORAGE; ModuleLog gains debugging(); PackSettings gains
resources(); RunningWorld gains placementAt. README, DESIGN and CONTRACTS
describe them, and the extension ledger drops ObjectHost and ObjectPlacement.
2026-10-28 01:25:41 +01:00
piexel e47acc847d Place with iris:objects placement settings
IrisObjectPlacement, IrisObjectTranslate and IPostBlockAccess are gone;
Iris places with the module's ObjectPlacement. IrisPlacementForm keeps
what Iris makes of a placement (its module settings decoded from the
placement's JSON, its noise as Iris generators, the surface warp cache)
on the placement's host slot. The placement reader decodes through the
module decoder. IrisObjectRotation becomes BlockStateRotation (state
turning only) and IrisObjectScale becomes ScaledObjects. Studio adds
placement-level module settings to the module's ObjectPlacement schema.

The procedural golden digests change only because the hashed options
JSON no longer carries the Iris-only warp cacheSize; a probe on the
previous commit and this one gave identical block digests and identical
option values otherwise.
2026-10-27 01:43:56 +01:00
piexel 1582a2126f Make object placements plain iris:objects settings
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.
2026-10-27 01:43:53 +01:00
piexel 398f3879ae Remove registerHeldType
Built-in module types are no longer held by Iris's own classes: object
placements are iris:objects settings, so every type they hold is reached
from a registered feature. FeatureRegistry.registerHeldType,
HeldTypeRegistration, FeatureCatalog.heldTypes and SchemaSource.heldType
go, with the held example module and its schema tests.
2026-10-27 01:43:50 +01:00
piexel 74b129e105 Batch 7 stage 1: jigsaw definitions from the module build
The jigsaw definitions, StructureResources and IrisDirection now come from IrisModule. Iris
registers iris:structure (StructureModule) with its own modules; iris:structure-model keeps the
validator and the locator and vanilla structure services. StructureResources lookups take the
pack's PackResources, so callers pass data.getPackResources(); the Bukkit plugin compiles against
the API for that. IrisRegistrant extends the module's KeyedResource, which holds the load key.
A structure's loot placement is StructurePlacing.lootPlacement. Studio maps an API object
reference (GeneratedObject) to Iris's object loader.
2026-10-27 00:59:48 +01:00
piexel 217cff620c Batch 7 stage 1: StructureHost ledger entry follows the structure model's move 2026-10-27 00:59:48 +01:00
piexel 749b187dc4 Batch 7 stage 1: jigsaw definitions become iris:structure resource kinds
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.
2026-10-27 00:59:47 +01:00
piexel c9e36761e4 Batch 6 part 4c: tests follow the jar's own types
Tests import the settings and terrain types that moved to
art.arcane.iris.modules. A test world (ApiChunk) and the jar services
test hand a module from the built-ins jar its own copy of a settings
type, since the jar loads the types Iris no longer shares, as the pack's
decoder does for a real pack.
2026-10-24 10:48:58 +02:00
piexel bf29f4b486 Batch 6 part 4c: the jar's own types leave the exposed package
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.
2026-10-24 10:48:33 +02:00
piexel d55b9ce72d Batch 6 part 4c: ledger of Iris extensions
DESIGN.md lists what Iris's built-ins still ask through facades
(MatterMantle, ObjectHost, ObjectPlacement, FloatingHost, StructureHost,
SpawnCooldowns, the legacy random parameters) with the reason each is
not API yet and what would let it go, and says that a type only the
host's built-ins read stays unexposed unless packs write it as a snippet.
2026-10-24 10:48:27 +02:00
piexel 2e99491429 Batch 6 part 4b: placement facades in API vocabulary
Finding 40. IrisPlacementTerrain answers minWorldY and the placed object
as a ResourceId, IrisObjectShape its object id, IrisPlacementSettings the
collision sets as object ids; rockAt and hasBedrock are gone, so the host
no longer reaches TerrainPalettes or BedrockSettings. Placement tests
whose mocked engine had no world get a bare running world
(BuiltInPack.runBareWorld), whose default rock is the stone the old
no-terrain fallback wrote; the pinned hashes are unchanged.
2026-10-24 10:24:29 +02:00
piexel e4cb8146a1 Batch 6 part 4b: placement facades in API vocabulary
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.
2026-10-24 10:24:25 +02:00
piexel df10a90117 Batch 6 part 4a: purpose seeds and the running world for the built-ins
Finding 40, first step. IrisPackWorld answers seed(purpose) through
IrisWorldSeeds (iris:seed/* map to SeedManager's legacy seeds, any other
id to WorldRandom.purposeSeed) and running() with IrisRunningWorld (the
engine's layout over the whole world, chunk-stage settings, highest
block, cave floors, sky, platform loot tables, studio as debug), built
on first use. IrisObjectHost loses the layout and settings lookups the
API now answers and gains placedLoot; spawner cooldowns are offered as
SpawnCooldowns. Tests follow; generation output is unchanged (goldens,
pins and probes pass as they were).
2026-10-24 10:09:25 +02:00
piexel 45cb5e4bcf Batch 6 part 4a: built-ins on purpose seeds and the running world
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.
2026-10-24 10:09:13 +02:00
piexel 364d735a95 Batch 6 part 4a: purpose seeds and the running world
Finding 40, first step. PackWorld.seed(purpose) gives each purpose id an
independent world seed, specified as WorldRandom.purposeSeed and pinned
against the reference script; a host may answer its own built-ins' ids
with the seeds existing worlds depend on. PackWorld.running() is the
world as services and hooks see it (layout over every column, settings,
highest block, cave floors, sky, platform loot tables, debug), reusing
TerrainSampler and FeatureSettings instead of a facade vocabulary.
2026-10-24 10:08:47 +02:00
piexel 711fdd078a Batch 6 part 3: host side of structure locating and the decoding contract
Structure locating goes through StructureLocator. Ownership records hold
one memo text and no placement identity (schema 3; older records fail
closed). NativeStructureStartsTest drops the identity column of its golden;
the other columns are unchanged.

ModuleSettingsDecoder applies the decoding contract (DecodingContract: null
members are left out, unknown enum names are errors). NoiseStyle no longer
carries cacheSize, a cache knob only. PlacementRequest has no id. Dimension
settings reach LinkedBiomes as PackSettings.
2026-10-24 09:24:18 +02:00
piexel 7be7c311e3 Batch 6 part 3: one-text start memo, LinkedBiomes in world
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.
2026-10-24 09:24:14 +02:00
piexel 1bc91df048 Batch 6 part 3: structure locating, decoding contract, minor cuts
Finding 45: StructureLocator is the one locating service (startedStructures,
locatableStarts, locateStart, ChunkFilter moved from VanillaStructures).
StartMemo is one opaque non-empty text. VanillaStructureStart.identity is
deleted; the host only stored it. useExpansionHack and legacyAir stay: both
mirror platform structure behaviour any structure module needs.

Finding 46: DESIGN.md documents one decoding contract (fields read by name,
absent or null members keep the initialiser, unknown enum names are errors,
the host never writes null). Value type getters stop null-guarding.
NoiseStyle.cacheSize is deleted. @Desc texts rewritten. multiplier stays on
NoiseStyle: it is also an object placement's warp strength.

Finding 47: LinkedBiomes moves to world and takes the dimension's settings
as PackSettings. Optional packages move from ModuleInfo to the jar manifest
(Iris-Optional-Packages); PackageName moves into the host.
PlacementRequest.id is dropped (nothing read it).
2026-10-24 09:24:12 +02:00
piexel dc0d61ce63 Apply IrisApi's typed keys, grouped values and @Ref(kind)
Batch 6, findings 41 and 42.

- Bukkit items, attributes, ambient effects and entities read ResourceIds,
  ContentKeys and the grouped ItemDrop and EntitySpec; Iris-only entity
  knobs come from the IrisEntityExtras extension.
- Iris serves the host kinds EXPRESSIONS and IMAGE_MAPS; noise styles map
  their ids back to the exact pack keys of the snapshot.
- Studio completes @Ref(kind = ...) of host kinds through Iris's loaders
  and @IrisStructureRef with the structure-model keys.
- Markers, sapling species, upper dimensions and jigsaw start pools are ids.
- Modded attribute lookup strips the minecraft namespace before the legacy
  generic prefixes, now that keys arrive namespaced.
- Loot and entity pins retaken: printed the old way, the new values still
  hash to the old numbers (recorded in the tests).
2026-10-24 06:06:59 +02:00
piexel 06b3f10220 Hand the API typed keys and grouped item and entity values
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.
2026-10-24 06:06:52 +02:00
piexel 6b24e6f150 Type platform keys and fold pack references into @Ref(kind)
Batch 6, findings 41 and 42.

- Platform keys travel as ResourceId: enchantments, attributes, sounds,
  particles, potions, loot tables, sapling species, marker tags, upper
  dimension ids and jigsaw start pools. ResourceId.ofPlatformKey normalises
  a key a pack wrote.
- Item and entity types are a ContentKey (Registered id, or Provided
  provider and name) instead of strings and a special-type flag.
- ItemDrop groups into Look, Wear and PlatformExtras; colours are an RGB
  int and DyeColor, attribute operations an enum.
- EntitySpec groups into Appearance, Behaviour, Company, Drops and Arrival,
  and carries host extensions instead of Iris-only fields.
- @Ref(kind = Type.class) replaces @ResourceRef and the PACK_* references;
  expressions and image maps become the host kinds EXPRESSIONS and
  IMAGE_MAPS.
2026-10-24 06:06:44 +02:00
piexel ca07b8ce0b Batch 6 part 1: host the renamed api: minWorldY, find, blocks(), geometry
IrisPackWorld, platform starts and structure fits answer minWorldY(); ToolWorld
answers 0 explicitly. IrisBlockRegistry answers find(key) and no longer maps the
removed traits. IrisGenerationContext hands out blocks(). Placement settings pass
declaredBy on to the world's settings. Test fixtures implement the methods that
lost their defaults.
2026-10-24 05:19:11 +02:00
piexel 32703269a3 Batch 6 part 1: build against the geometry package, find(key), blocks() and minWorldY()
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().
2026-10-24 05:19:11 +02:00
piexel 05f621d82d Batch 6 part 1: one bottom-Y name, no silently-wrong defaults, geometry package, blocks
Finding 43: PackWorld.minHeight(), PlatformStart.bottomY() and StructureFit.bottomY()
become minWorldY(), the name TerrainSampler already used, and none of them has a default.
FeatureSettings.declaredBy, TerrainSampler.surfaceBlock/upperDimension and
BlockRegistry.oreFor lose defaults that answered wrong for a host that forgot them.
BlockBox, BlockPosition and BlockFace move to com.volmit.geometry.

Finding 44: BlockRegistry keeps resolve(BlockSpec) and adds find(key), which is
empty for a block the platform lacks; resolve(String) and resolve(BlockState) go.
BlockTrait drops INVENTORY, BLOCK_ENTITY and NEEDS_UPDATE, which nothing asked;
BlockAccess.is answers every trait. GenerationContext.hunk(Class) becomes blocks().
2026-10-24 05:19:06 +02:00
piexel b0a8904b31 Batch 5 of the API review: depend on IrisModule as a build of its own
settings.gradle includes ../IrisModule (art.arcane:iris-module); core depends on it with api, so the
adapters keep seeing module classes. Core no longer compiles the module's sources: gradle/default-module.gradle,
the ownership check and the module root of bukkitPurityRatchet are gone. The 111 module sources that need Iris
itself (layout model, objects and blocks, structure model and placer, object placers) move into core
unchanged.

:core:builtinModulesJar now takes IrisModule's checked iris-builtins.jar (capability art.arcane:iris-builtins),
checks it once more against the VolmLib classes the Bukkit jar leaves out, and writes it to
build/builtin-modules for the jar and shadowJar. The shadowJar leaves out the module artifact's copies of the
jar's classes, read from the jar itself. Tests copy that jar into packs (iris.builtinModulesJar) instead of
rebuilding it from builtin-modules.txt; the pack type purity gate scans both class roots.

EntityKeyHandler names iris:spawn's entity kind by id instead of SpawnResources.ENTITIES, which ships only in
the built-ins jar (verifyBukkitArtifact failed on it since batch 3).
2026-10-24 04:46:50 +02:00
piexel 136f57fa73 Batch 5 of the API review: build the built-ins against the Iris API alone
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.
2026-10-24 04:46:44 +02:00
piexel 9473c827fe Batch 5 of the API review: document that the built-ins build against iris-api alone
README and DESIGN say that IrisModule compiles against iris-api, VolmLib and Gson only, checks its jar with
ModuleJarCheck, and that the classes needing Iris itself live in Iris.
2026-10-24 04:46:39 +02:00
piexel 64658013fe Host the batch 4 IrisApi: api and host artifacts, ModuleLoadException
- Depend on com.volmit:iris-api and com.volmit:iris-host; the probe
  compiles against the api only.
- PackModuleSet catches ModuleLoadException.
- ObjectPlacerEdit implements set(x, y, z, state) without a PlacedBlock;
  block entities sit in their own map.
- BlockStateHunk implements width(), height(), depth().
2026-10-24 04:19:42 +02:00
piexel 9b94eecae3 Move the built-in modules to the batch 4 API
- 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().
2026-10-24 04:19:40 +02:00
piexel b6c2992752 Batch 4 of the API review: api and host artifacts, ModuleLoadException
- Split into Gradle subprojects api (com.volmit:iris-api) and host
  (com.volmit:iris-host). ExposedPackages never exposes com.volmit.host.
- One unchecked ModuleLoadException(moduleId, origin, message, cause)
  for every load error; messages unchanged.
- PlacementAccess.set(x, y, z, state) next to set(PlacedBlock).
- BlockState: precompiled patterns, withProperty copies once.
- Mantle and layer views are made once per invocation.
- Hunk getters are width(), height(), depth().
- Held types and host types are deprecated for removal at the cut-over.
- Docs: artifacts, one-or-more modules per jar, no option shorthand.
2026-10-24 04:19:39 +02:00
piexel 4bacc306e9 Batch 3 of the API review: Iris offers its facades as extensions
- IrisPackWorld offers IrisSeeds, LiveWorld, ObjectHost, FloatingHost,
  StructureHost (and the engine to the structure built-ins) through
  extension(); IrisPackSettings the facades a reach needs. withLog,
  the Source interfaces and the of(...) casts are gone (HostExtensions).
- The invocation inputs offer IrisChunk / IrisMantleChunk, MatterMantle
  and ObjectPlacement; IrisChunk.current(), IrisMantleChunk.current()
  and IrisPlacement.runBound are gone. A chunk stage's MatterMantle is
  its own chunk plus the loaded neighbours (OwnChunkMatter).
- IrisPackResources serves find(kind, id) / ids(kind) and maps ids
  back to pack keys at the host's edge (keyOf); ModuleServices,
  ContentServices, the settings decoder (a bare ResourceId is the
  pack's id), ModuleSettings and CaveBiomeAnswers convert there.
- MantleCaverns, IrisModuleMantle and PlacementMantle answer isCarved.
- Starts get a StartKey per platform start (weakly held).
- Bukkit adapters read the Optional-valued items, entities and effects.
- Tests follow; the loot and entity pins are retaken after checking
  that the old printing of the new values gives the old hashes.
2026-10-24 00:17:24 +02:00
piexel 00e1fc1e27 Batch 3 of the API review: built-ins reach Iris through extensions
- 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.
2026-10-24 00:17:17 +02:00
piexel 3a307b5b8e Batch 3 of the API review: extension point, resources by kind
- PackWorld, InvocationContext and PackSettings get extension(type),
  an Optional empty by default: the one door a host's own modules use
  to reach its facades. The runners forward the inputs' extensions;
  the world a module sees (ModuleWorld, built by the host) forwards
  the world's. PackWorld.withLog is gone.
- A chunk stage writes registered mantle layers inside its own chunk
  and reads the rest (ChunkMantle); ReadOnlyMantle and its host() are
  gone.
- PackResources.find(kind, id), require(kind, id), ids(kind) and the
  host kinds BIOMES, REGIONS, OBJECTS replace ResourceKey and
  ResourceKind.key. Services and LinkedBiomes name pack resources by
  ResourceId. @Ref(PACK_*) and @ResourceRef fit ResourceId fields.
- BlockAccess extends BlockView.
- Absent values in ItemDrop, EntitySpec and AmbientEffects.Effect are
  Optionals; StructureFit.Start.key() returns a StartKey.
- Mantle.caverns() becomes isCarved(x, y, z).
- OptionsMetadata and DeclaredFieldOrder move to com.volmit.host.
- README, DESIGN and CONTRACTS updated; ExtensionsTest added.
2026-10-24 00:17:10 +02:00
piexel 7fc4445ab7 Host the batch 2 IrisApi: settings stacks, tool world, chunk scan
- ChunkModuleSettings returns SettingsStacks and keeps them per pack
  snapshot (SettingsStacks), so at() allocates nothing for a column
  whose region and biome were seen before.
- declaredInChunk is answered from the chunk's distinct regions and
  biomes, each asked for its settings once.
- A studio paste runs in a ToolWorld with the pack's resources and
  settings and its own state, so world() always answers.
- Level replaces FeatureAttachment.Target across decoding, schema and
  packaging; IrisTerrainSampler gives surfaceHeight.
- Tests: chunk scan parity and order, the stack cache, the tool world;
  engine mocks now serve pack resources as real engines do.
2026-10-23 14:17:26 +02:00
piexel b15a41094d Move the built-in modules to the batch 2 API
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.
2026-10-23 14:17:21 +02:00
piexel 7143908d4b Batch 2 of the API review: settings stacks, chunk helpers, pack context
- SettingsStack<F> replaces List<Entry<F>> wherever settings stack:
  entries in level order, values(), dimension(), level(Level) and
  mostSpecific().
- com.volmit.config.Level replaces FeatureAttachment.Target;
  FeatureAttachment folds into FeatureDescriptor.targets().
- FeatureSettings.declaredInChunk answers every entry any column of a
  chunk declares, each once.
- ChunkContext gives chunkX/chunkZ, centreX/centreZ and area().
- registerSettings takes several types at once.
- ModuleLifecycle.packLoaded(PackContext) carries resources, settings
  and the module's log.
- TerrainSampler.surfaceHeight gives the surface in whole blocks.
- Stage contexts drop worldSeed() and resources(); world() always
  answers. The scoped world is kept per world and module.
- Javadoc fixes; README, DESIGN and CONTRACTS updated.
2026-10-23 14:17:19 +02:00
piexel 466d5149db Host the batch 1 IrisApi: module setup and timings on every runner
Iris's own modules (biome, custom, structure model) and the test modules
move to IrisModule.setup, and built-ins are set up through
ModuleSetups.run. Iris now passes StageMetrics to the placement and
mantle runners as well as the chunk runner. The biome module no longer
times itself; iris:biome/write feeds the biome metric through
StageMetrics instead.
2026-10-23 13:00:21 +02:00
piexel c3d175d8de Move the built-in modules to IrisModule.setup
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.
2026-10-23 13:00:11 +02:00
piexel 1677f4414b Batch 1 of the API review: one setup entry point, per-pipeline definitions
- IrisModule.setup(ModuleSetup) replaces install(StageGraph) and
  register(FeatureRegistry); ModuleSetups.run is the host entry point.
- The conditional definition variants are gone: a stage body reads the
  settings it is conditioned on through ctx.configured(Type.class).
- Placement, block, chunk and mantle stages each get their own
  definition interface; chunk definitions offer neither reach nor
  writesMantle. MantleStage is no longer generic.
- softAfter/softBefore take stage constants as well as StageRefs.
- A producer that rejected the attempt may return null.
- PlacementRunner, ChunkRunner and MantleRunner all take StageTimings.
- ConfiguredSettings groups entries by the type that declares @Feature.
- README, DESIGN and CONTRACTS updated, with the edge choice table.
2026-10-23 13:00:07 +02:00
piexel bc7f9127b5 Drop the legacy handling of a pack's own iris-builtins.jar
Nothing is released, so packs get no compatibility path: a pack that
still holds its own iris-builtins.jar fails to load naming both jars
(IrisApi), instead of being skipped with a warning. The missing
built-ins warning no longer suggests copying the jar into a pack, which
would now collide with the bundled one; it says to build the plugin.
2026-10-22 09:59:51 +02:00
piexel 06617d640b README: a pack must not hold its own copy of the bundled built-ins jar 2026-10-22 09:59:51 +02:00