Commit Graph
108 Commits
Author SHA1 Message Date
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 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 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 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 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 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 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 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 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 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 242ca3e323 Iris packages and bundles the built-ins jar; this build copies it
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.
2026-10-22 09:45:37 +02:00
piexel f06908a20f Placement stages register the held types Iris's IrisObjectPlacement holds
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.
2026-10-19 15:29:32 +02:00
piexel 74d83b5be1 Loot validation names why a table cannot be read
The validator reports the load's reason (such as a field of the wrong type) instead of pointing at the log.
2026-10-19 15:29:32 +02:00
piexel c9058e0892 Structures generate from the built-ins jar
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.
2026-10-15 13:03:42 +02:00
piexel 2ae16b9c9e Floating islands generate in the built-ins jar
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.
2026-10-15 12:36:10 +02:00
piexel d8612fae27 Procedural objects generate in the built-ins jar
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.
2026-10-15 11:55:18 +02:00
piexel b630efb818 Structure placement markers move into the exposed package; the blocks stage looks up spawn markers itself 2026-10-15 11:22:39 +02:00
piexel c3ed24364f Merge branch 'wave3b/2'
# Conflicts:
#	builtin-modules.txt
#	src/main/java/art/arcane/iris/builtin/package-info.java
#	src/main/java/art/arcane/iris/engine/mantle/components/ObjectPlacing.java
#	src/main/java/art/arcane/iris/engine/object/terrain/floating/ResolvedFloatingChild.java
#	src/main/java/art/arcane/iris/engine/object/world/biome/IrisBiome.java
#	src/main/java/art/arcane/iris/engine/object/world/biome/IrisBiomeColorRenderer.java
#	src/main/java/art/arcane/iris/engine/object/world/dimension/IrisDimension.java
#	src/main/java/art/arcane/iris/engine/object/world/region/IrisRegion.java
2026-10-15 07:29:06 +02:00
piexel 0cd2a0e195 The bedrock check asks the height first, so a placement above the bottom rows never reads the dimension's bedrock setting 2026-10-15 07:28:26 +02:00
piexel 3eb987680e Carve dresses caves with the terrain and decorant built-ins' layers, palettes and decorators directly, now that all three ship in the jar: CaveDressing becomes carve's own seam 2026-10-15 07:23:42 +02:00
piexel 81e8b300ef Merge branch 'wave3b/4'
# Conflicts:
#	builtin-modules.txt
#	src/main/java/art/arcane/iris/builtin/package-info.java
#	src/main/java/art/arcane/iris/engine/mantle/components/CaveCarving.java
#	src/main/java/art/arcane/iris/engine/modifier/CarveModule.java
#	src/main/java/art/arcane/iris/engine/modifier/CaveApplying.java
#	src/main/java/art/arcane/iris/engine/modifier/IrisCarveScratch.java
#	src/main/java/art/arcane/iris/engine/object/placement/VacuumModule.java
#	src/main/java/art/arcane/iris/engine/object/placement/ValidateModule.java
2026-10-15 07:15:17 +02:00
piexel 182bb12cbc iris:objects docs for the objects facade; ResolvedTree and ResolvedProceduralObjects drop what nothing reads; EffectivePlacements says what the dimension really does 2026-10-15 07:08:44 +02:00
piexel 4644d94331 Merge branch 'wave3b/5'
# Conflicts:
#	README.md
#	builtin-modules.txt
2026-10-15 07:08:36 +02:00
piexel 3480861f41 Merge branch 'wave3b/3'
# Conflicts:
#	README.md
#	builtin-modules.txt
2026-10-15 07:08:21 +02:00
piexel f7e8b74745 Merge branch 'wave3b/1'
# Conflicts:
#	README.md
#	builtin-modules.txt
#	src/main/java/art/arcane/iris/engine/object/placement/BlocksModule.java
2026-10-15 07:08:13 +02:00
piexel f0fcfbe304 README and package docs: decorant, terrain and deposit in the jar, their new dimension keys, the shared layer classes 2026-10-12 02:57:57 +02:00
piexel 36d464d0a3 Carve and floating islands read a biome's layers once per biome and convert layer blocks once per block instance; the upper dimension's palette explosion is read once per chunk 2026-10-12 02:57:42 +02:00
piexel 12ec03d61c iris:terrain ported onto IrisApi and listed in the built-ins jar; bedrock and exploded palettes become dimension settings; layers and palettes are shared classes of the exposed package 2026-10-12 02:38:59 +02:00
piexel 2d63a9aaa4 iris:objects is written against IrisApi and the objects facade: ObjectModule, ObjectPlacing, ObjectWarmUp, ObjectLocating and TreeGrowing move into iris-builtins.jar; ObjectHost and ObjectChunk are what Iris answers 2026-10-12 02:36:42 +02:00
piexel 965adea59e Structure placements become iris:structure settings under the key packs always wrote
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.
2026-10-12 02:19:49 +02:00
piexel ed8c33fca7 iris:objects and iris:post only order after iris:carve; README 2026-10-12 02:19:37 +02:00
piexel 3ac31c573b iris:decorant ported onto IrisApi and listed in the built-ins jar; decorate becomes a dimension setting 2026-10-12 02:18:10 +02:00
piexel ef893e0ebf The object placement stages move into the built-ins jar
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.
2026-10-12 02:09:14 +02:00
piexel 412987daf9 iris:objects owns objects, proceduralObjects, treeSettings and the dimension's object surface-support and upper-object switches as module settings; the host reads them through ObjectPlacements 2026-10-12 02:07:38 +02:00
piexel 703f206248 iris:carve moves into the built-ins jar: caves, applying, carving bands and profile sampler on IrisApi, VolmLib and the builtin facades (MatterMantle, CaveDressing); caveLavaHeight and upperDimensionCarving become carve settings 2026-10-12 02:07:13 +02:00
piexel 75f3504ae7 iris:structure answers the new structure services and keeps its locator indexes in world state
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.
2026-10-12 02:06:14 +02:00
piexel b59538ca6f iris:deposit ported onto IrisApi and listed in the built-ins jar 2026-10-12 02:01:13 +02:00
piexel 48ff0908e2 iris:loot and iris:spawn onto the module surface and into iris-builtins.jar: no engine, IrisData, IrisPlatforms or Bukkit types; the validator checks the decoded tables and references 2026-10-10 18:21:31 +02:00
piexel 347c69b0a2 LiveWorld and SpawnCooldowns: what the loot and spawn services ask a running world, as values; the saved cooldowns no longer read spawner files 2026-10-10 18:21:31 +02:00
piexel 4f852f9c47 ObjectLoot, ObjectVanillaLoot and PlacementMarker: the loot and marker lists of an object placement as module-owned types of IrisApi annotations and BlockSpec 2026-10-10 18:21:31 +02:00
piexel 71d0780fcb iris:vanilla-features: importedFeatures become module settings answered through VanillaFeatures, in the built-ins jar
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.
2026-10-10 18:16:20 +02:00
piexel 6ff5664f4e Mechanical: IrisApi's StructureStep is DecorationStep 2026-10-10 18:04:44 +02:00
piexel d18972048c Mechanical: LootResolver moves to art.arcane.iris.builtin.loot, where the loot module and the hosts that fill containers share it 2026-10-10 18:02:53 +02:00
piexel 0b02cb3298 Mechanical: Vector3i, IrisVector, IrisBlockVector, VectorMap, AtomicCache and Cache's key helpers come from VolmLib 2026-10-10 15:18:05 +02:00
piexel 8d1a3dca18 Merge branch 'wave3b/p' 2026-10-10 15:07:18 +02:00
piexel 78eee638ae iris:post reads its neighbours' heights through TerrainSampler.surfaceY, which spares the host the slope of every column of the height plane 2026-10-10 14:46:22 +02:00
piexel fb92f88ab1 Modules log through the ModuleLog of their context, world or registry instead of IrisLogging; helpers without one take it from their caller 2026-10-10 14:25:32 +02:00
piexel db0f8a9186 iris:biome and iris:custom leave the module sources: Iris registers them itself, in core 2026-10-10 14:25:32 +02:00
piexel 2148eb28cd Merge master (T, C, L) into wave3/s: iris:post reads T's post and terrain settings, iris:perfection C's hideOresForHiddenOre; a layer's block picks move into the shared, portable LayerBlocks so terrain, caves and post keep one noise per layer; PendingSettings is gone 2026-10-10 13:35:48 +02:00
piexel df6081b7b7 README: the built-ins jar holds post, perfection and matter; the built-in facades 2026-10-10 13:16:39 +02:00