Commit Graph
55 Commits
Author SHA1 Message Date
piexel d2ce5f4a05 Port v3e's parts-based procedural objects
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.
2026-11-05 23:00:20 +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 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 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 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 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 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 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 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 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 06617d640b README: a pack must not hold its own copy of the bundled built-ins jar 2026-10-22 09:59:51 +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 bd7c1a226a README: structure model is Iris's, iris:floating and iris:structure ship in the jar 2026-10-15 13:11:49 +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 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 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 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 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 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 0d557da40f builtinModulesJar fails a module that uses a VolmLib class Iris's Bukkit jar leaves out 2026-10-10 15:19:53 +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
piexel 95a086f3e0 Merge branch 'wave3/l'
# Conflicts:
#	src/main/java/art/arcane/iris/engine/object/world/biome/IrisBiome.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-10 13:05:31 +02:00
piexel 9b5ced0cc8 Merge branch 'wave3/c'
# Conflicts:
#	README.md
#	src/main/java/art/arcane/iris/engine/actuator/TerrainModule.java
#	src/main/java/art/arcane/iris/engine/mantle/components/CaveCarving.java
#	src/main/java/art/arcane/iris/engine/object/world/biome/IrisBiome.java
#	src/main/java/art/arcane/iris/engine/object/world/dimension/IrisDimension.java
2026-10-10 13:05:25 +02:00
piexel 651ff77c85 README: iris:loot and iris:spawn settings, AmbientEffects, PlacementLoot 2026-10-10 13:01:15 +02:00
piexel cff492ada8 Caves and floating islands are settings of iris:carve and iris:floating
caveProfile (CaveProfile is the feature, held by dimension, region and biome), carving (CarvingSettings of CarvingEntry),
carvingEnabled, carvingBiome and caveMinDepthBelowSurface are iris:carve settings; floatingChildBiomes and
mergeFloatingChildBiomes are iris:floating settings, all under the keys and shapes packs always wrote. CarvingEntry is
IrisApi-typed; ResolvedCarvingEntry, CarvingBands (the world's bands) and CarvingResolver (was IrisDimensionCarvingResolver)
hold the behaviour, CaveProfiles and FloatingChildren read the settings. iris:carve provides CaveBiomes (CaveBiomeBands).
CarvingBiomeSettings, CarvingSettings and FloatingChildSettings implement LinkedBiomes, so the biome tree and the biomes a
dimension reaches learn of the biomes they name without reading the classes. IrisBiome, IrisRegion and IrisDimension lose the
fields, the carving entry index and getRealCarvingBiome; IrisDimensionCarvingEntry is deleted. CaveApplying and DepositPlacer
no longer thread a resolver state through the cave biome lookup.
2026-10-10 08:51:28 +02:00
piexel 23eaa15e86 Layers, slab, wall, sea and cave ceiling layers, rock and fluid palettes and the post processing switches become iris:terrain and iris:post settings
IrisBiomePaletteLayer is the PaletteLayer value, IrisBiomeLayerGenerator is BiomeLayers over ResolvedLayer, the dimension's rock and fluid streams are TerrainPalettes. The decorator slope and SlopeClip are one class. A biome's inferred variants keep its module settings.
2026-10-10 08:36:44 +02:00
piexel 7a0d269780 README: iris:structure provides VanillaStructures and owns the structure fit; place modes are data 2026-10-10 03:56:04 +02:00
piexel 13aa3ccc68 Built-in settings declare their JSON keys: deposits, decorators, importedStructures
DepositSettings and DecorantSettings hold their one option's list as the value of
the key (root), StructureSettings is the object under importedStructures. The
feature ids stay the modules' identity. README names the keys.
2026-10-09 23:27:19 +02:00
piexel 4203c07c29 Merge branch 'wave2/c'
# Conflicts:
#	README.md
#	src/main/java/art/arcane/iris/engine/mantle/components/ObjectModule.java
#	src/main/java/art/arcane/iris/engine/object/decoration/IrisDecorator.java
#	src/main/java/art/arcane/iris/engine/object/world/biome/IrisBiome.java
2026-10-09 22:47:28 +02:00
piexel 8cf11774da ResolvedDecorator exposes its seed; README describes iris:decorant 2026-10-09 22:46:24 +02:00
piexel cd7584b2ab Merge branch 'wave2/e2'
# Conflicts:
#	src/main/java/art/arcane/iris/engine/framework/IrisStructureLocator.java
#	src/main/java/art/arcane/iris/engine/mantle/components/ObjectModule.java
#	src/main/java/art/arcane/iris/engine/object/placement/BlocksModule.java
#	src/main/java/art/arcane/iris/engine/object/placement/IrisObjectPlacement.java
#	src/main/java/art/arcane/iris/engine/object/world/dimension/IrisDimension.java
2026-10-09 22:33:42 +02:00
piexel 54b22c942d README: module-owned settings held by Iris's classes 2026-10-09 22:32:16 +02:00
piexel 4735477918 README: iris:loot, iris:spawn and the new services of iris:objects; tree species by name 2026-10-09 22:26:05 +02:00
piexel 04ce02c042 iris:deposit is written under its feature id only; drop the deposits alias 2026-10-09 20:21:14 +02:00
piexel c895fe117f Merge wave1/a2 2026-10-09 14:47:05 +02:00
piexel f0f3c4d1b8 Merge wave1/a1 2026-10-09 14:43:33 +02:00
piexel 03f7d20e1a Provide ObjectsAt from iris:objects and StructureLocator from iris:structure (StructureLocating), drop a world's structure index when it stops, and keep iris:decorant's Decorating in the world's state store 2026-10-09 14:35:34 +02:00
piexel 5a99c2e70c Build the built-in modules as a pack module jar from a list of module classes and check it with IrisApi's pack class checks
builtinModulesJar packages the classes listed in builtin-modules.txt from Iris core's compiled output,
writes the module entry points, runs ModuleJarCheck on the result and only then puts
build/libs/iris-builtins.jar in place. Nothing is listed yet.
2026-10-09 14:33:08 +02:00
piexel f69d9128d5 Make deposit settings IrisApi types only: DepositGenerator and its enums in the builtin package with BlockSpec palettes, the palette, ore, replace and clump logic in ResolvedDeposit, and IrisDepositGenerator deleted 2026-10-09 14:32:17 +02:00
piexel 98562bf962 Own structures, jigsaw pools and pieces as resource kinds of iris:structure and check them with its validator, which takes over Iris's structure graph and native replacement checks 2026-10-08 20:36:10 +02:00