Commit Graph
146 Commits
Author SHA1 Message Date
piexel 956c33e8db Follow the API's renamed highest, get and withPropertyIfAccepted 2026-11-06 06:18:37 +01:00
piexel 59f24a03af Follow the API's typed tooling values
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.
2026-11-06 06:09:14 +01:00
piexel 5d0c378f88 Build entity specs without the removed extensions 2026-11-06 05:55:48 +01:00
piexel 2896aeb400 Show procedural objects as nodes in the studio editor
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.
2026-11-06 05:06:23 +01:00
piexel 949d2ecac3 Add the Palettes studio view to iris:terrain
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.
2026-11-06 02:39:43 +01:00
piexel cb3859b40f Show every procedural object variant in the studio
iris:objects registers the Procedural scene view: each procedural
definition with as many variants as it asks for, baked the way the
world bakes them.
2026-11-06 01:28:44 +01:00
piexel f70b8a8abc Show the pack's objects in the studio
iris:objects registers the Objects scene view: every object of the pack,
listed under the folders of its file, one scene each.
2026-11-06 01:18:48 +01:00
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 501862b9ea Keep leaves from cutting logs
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.
2026-11-05 21:28:12 +01:00
piexel d65da98624 Space surface objects apart and vary their chance with noise
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.
2026-11-05 21:14:53 +01:00
piexel 9852f730a7 Read seeded noise styles flat in blocks
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.
2026-11-05 21:02:19 +01:00
piexel 3ac971c0d9 Name the pack table an item came from by its id 2026-10-28 04:16:10 +01:00
piexel e0dda1699c Move the vocabulary only Iris core uses back into Iris core
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.
2026-10-28 04:09:40 +01:00
piexel 83bc859b31 Hand Iris the placement, its record, the shuffle seed and the floor
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.
2026-10-28 04:02:52 +01:00
piexel 98c3c96881 Drop DecoratorLoad and LayerLoad
They sat in the exposed package only so Iris could colour the decorator and
layer map modes, which are cut.
2026-10-28 03:29:50 +01:00
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 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 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 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 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 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 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 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 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 2fa678cce2 Merge branch 'wave3b/6' 2026-10-15 07:07:40 +02:00