Commit Graph
4825 Commits
Author SHA1 Message Date
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 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 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 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 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 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 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 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 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 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 72c3d662c1 The plugin bundles iris-builtins.jar and every pack loads it
A world's pack copy carried its own modules/iris-builtins.jar, which
went stale with every plugin update and, since a used pack that cannot
load stops startup, would stop the server. Now :core:builtinModulesJar
packages the jar from core's own compiled classes (moved here from
IrisModule's build, with IrisApi's ModuleJarCheck), and core's jar and
the Bukkit shadowJar carry it as iris-builtins.jar, leaving its classes
out of the plugin's own. IrisModuleHost unpacks it to a temporary
folder and bundles it (ModuleHost.bundlingJars), so every pack loads
it as if it were in its modules folder.

A pack's own copy is left out; Iris warns once with its path.
MissingBuiltInModules now only fires for an Iris build without the jar
(Iris's own tests), and says so.
2026-10-22 09:45:47 +02:00
piexel 91b251b352 A pack that cannot load stops the server only when a world uses it
The startup datapack compile used to fail on any pack whose modules or
dimensions could not load, so one broken pack nobody used stopped the
whole server. Now a pack that cannot load stops the compile only when a
world uses it: a pack copied into a world's folder belongs to that
world, and an installed pack is used by every configured world that
selects one of its dimensions and has no copy of its own (PackUse). The
message names the pack, why it cannot load, and the worlds using it.
A pack no world uses is left out with a warning, and the server starts.

The pinned registry requirements leave out the same packs, so the
plugin no longer reports "Unable to pin loaded Iris datapack registry
requirements" for them. The dimension type folder is always created,
so a datapack built only from left-out packs still reads as complete.
2026-10-19 15:58:11 +02:00
piexel 8aa07403e7 Pin tree palettes to Iris's palette noise as before the port
The golden test stubs palettes with a hash, so nothing pinned the real picks. A bloomspire tree with a diamond/gold
trunk palette now bakes through IrisPackResources' real block registry. A probe of a pack whose only land biome grows
that tree gave the same signature on this build and on the build before the tree port (Iris 48e328bae,
IrisModule 0d557da), and this digest was taken after.
2026-10-19 15:36:44 +02:00
piexel c0080c4bbe Probe binds AtomicCacheFailureReporting like the plugin and the mods
A failing cache supplier now reaches the probe's error sink, so the probe reports it the way a server would.
2026-10-19 15:29:45 +02:00
piexel 46b94ad6a8 Remove iris:placement-settings: the placement stages describe their held types 2026-10-19 15:29:45 +02:00
piexel 37851fee0c A module resource that fails to read throws with the reason
ModuleResourceFiles.read reports the file as before and then throws an IllegalStateException carrying the decoder's
message, so validators can say what is wrong instead of pointing at the log.
2026-10-19 15:29:45 +02:00
piexel 302166f115 Host side of the structure port: IrisStructureHost, iris:structure-model
Iris's worlds serve a StructureHost backed by the engine's StructurePlacing.
The new host module iris:structure-model registers the structure resource
kinds, the structure validator, the locator and the vanilla structure answers;
iris:structure loads from the built-ins jar, so no generation module is
compiled into Iris any more. The schema builder and the export closure read
Reference.PACK_STRUCTURE. Test fixtures serve the model module next to the
structure module, and the purity allowlist drops DecoratorCore, which no
longer touches Bukkit.
2026-10-15 13:03:45 +02:00
piexel 40f042dc8e Host side of the floating port: IrisFloatingHost
IrisPackWorld and IrisPackSettings serve a FloatingHost; iris:floating loads
from the built-ins jar and is no longer compiled in. ChunkContext loses the
shared island boundary sampler. The floating tests move to the API types, the
jar tests load the jar without stand-ins, ApiChunk's world serves empty
floating and object hosts, and UndersideTurnTest pins the underside turn
against IrisObjectRotation.xFlip180WithY.
2026-10-15 12:36:10 +02:00
piexel 901d46a3b9 Host side of the procedural port: IrisObjectBuilder, ProceduralOptions
IrisObjectBuilder builds a module's procedural variants as Iris objects (and logs the golden-debug digest
for every kind), ProceduralOptions reads a ProceduralPlacement as an IrisObjectPlacement, and IrisObjectHost
caches resolved placements per world. The golden test pins the same digests through the new API.
2026-10-15 11:55:18 +02:00
piexel ad85b7e729 Golden procedural objects also on a game-like platform: properties, defaults, missing blocks 2026-10-15 11:41:55 +02:00
piexel 14b50729e7 Golden test: the overworld pack's procedural objects bake the same variants and placement options 2026-10-15 11:38:55 +02:00
piexel 4209468b4c Placements hand out their pack's resources instead of looking up spawn markers; marker test follows its class 2026-10-15 11:22:39 +02:00
piexel 85dfe08290 Missing built-ins warning names everything a pack loses without the jar 2026-10-15 07:48:13 +02:00
piexel 2d6d60a0fa The Bukkit jar leaves out Iris's own unused classes again: moving the VolmLib entries into their shared file had dropped the Iris entries that sat in the same list, so GridLock shipped without the GridLockSupport it needs 2026-10-15 07:36:17 +02:00
piexel 1f388d761e Merge branch 'wave3b/2' into feat/irisapi-host
# Conflicts:
#	adapters/modded-common/src/main/java/art/arcane/iris/modded/command/ModdedStudioCommands.java
#	core/src/main/java/art/arcane/iris/core/modules/IrisModuleHost.java
#	core/src/main/java/art/arcane/iris/core/modules/IrisPackWorld.java
#	core/src/test/java/art/arcane/iris/core/modules/BuiltInPack.java
#	core/src/test/java/art/arcane/iris/core/pack/ModuleResourceClosureTest.java
#	core/src/test/java/art/arcane/iris/engine/modifier/ApiChunk.java
#	core/src/test/java/art/arcane/iris/engine/object/placement/IrisObjectPlacementToPlacementTest.java
2026-10-15 07:30:30 +02:00
piexel 9a0c4af126 The duplicate-id test uses iris:floating, which is still compiled in, since terrain moved into the jar 2026-10-15 07:28:26 +02:00
piexel eca3908ec1 Merge terrain, decorant and deposit (wave3b/4) with carve and placement: one pinned mantle chunks set with loaded-chunk lookup, both mantle margins, placement terrain reads BedrockSettings and TerrainPalettes, IrisCaveDressing goes 2026-10-15 07:23:42 +02:00
piexel 4f2dd86595 Placement settings read port 6's PlacementMarker: marker targets resolve through the pack's block registry, and spawn markers through its resources 2026-10-15 07:13:42 +02:00
piexel 27ad269e8b Merge branch 'wave3b/5' into feat/irisapi-host
# Conflicts:
#	core/src/main/java/art/arcane/iris/core/modules/IrisModuleHost.java
#	core/src/main/java/art/arcane/iris/core/modules/IrisPackWorld.java
#	core/src/main/java/art/arcane/iris/core/modules/MissingBuiltInModules.java
#	core/src/test/java/art/arcane/iris/core/modules/BuiltInPack.java
#	core/src/test/java/art/arcane/iris/engine/framework/StructureCaveAnchorResolverTest.java
2026-10-15 07:10:18 +02:00
piexel 4928a80035 Merge branch 'wave3b/3' into feat/irisapi-host
# Conflicts:
#	core/src/main/java/art/arcane/iris/core/modules/IrisModuleHost.java
#	core/src/test/java/art/arcane/iris/core/modules/BuiltInPack.java
2026-10-15 07:09:43 +02:00
piexel f17267ab8b Merge branch 'wave3b/1' into feat/irisapi-host
# Conflicts:
#	core/src/main/java/art/arcane/iris/core/modules/IrisModuleHost.java
#	core/src/test/java/art/arcane/iris/core/modules/BuiltInPack.java
2026-10-15 07:09:26 +02:00
piexel 26c2f128f5 Tests for iris:objects' host side and helpers (placement changes, effective placements, cave anchors, ObjectPlacements); the purity allowlist drops IrisTree 2026-10-15 07:08:44 +02:00
piexel 5d9f960a20 Merge branch 'wave3b/6' into feat/irisapi-host 2026-10-15 07:08:41 +02:00
piexel 556ad2faf2 The missing built-ins warning names the caves 2026-10-12 02:41:59 +02:00
piexel 44c5b0ed8a Studio's layer view reads the biome's layer styles through IrisValues 2026-10-12 02:40:40 +02:00
piexel 671bcbae8b Decoding test for the dimension keys bedrock, decorate and the exploded biome palettes 2026-10-12 02:39:43 +02:00
piexel b6926d4ba4 Host side and tests for ported terrain: batched state writes, surface biome id, the layers and palettes live in the exposed package, tests on the API 2026-10-12 02:38:59 +02:00
piexel 5ddcf07fed Iris answers iris:objects through ObjectHost (IrisObjectHost, IrisObjectChunk): object loading and scaling, placement with its stages, carved space and layout reads; the objects module loads from the built-ins jar 2026-10-12 02:36:42 +02:00
piexel 57d5a65c57 Core reads structure placements from settings; package exports leave structures to their own closure
ModuleResourceClosure.exportingElsewhere(type) names the resources of a kind another exporter writes:
IrisPackageCompiler and the modded studio export take the placed structure keys from it, and StructurePackageClosure
still copies structures with their pools, pieces and loot. SchemaBuilder loses the RegistryListStructure branches and
StructureSchemaKeys. Tests build placements as packs write them (StructurePlacementFixtures); a decoding test pins
the overworld's ancient city placement and an anonymous cave placement to the identities and starts the old classes
gave.
2026-10-12 02:19:49 +02:00
piexel 4f69881e1f Carve port tests: CarveTestWorld/Terrain fixtures, carving resolver parity against Iris's generators, cave carving, applying and mantle facade tests; the jar test lists carve; mantle stages see 16 blocks of terrain 2026-10-12 02:19:37 +02:00
piexel 6c08f545df The probe's platform no longer binds decorator hooks 2026-10-12 02:18:15 +02:00
piexel 7d6256230a Host side for ported decorant: the chunk mantle reaches 16 blocks around, ids are remembered, decorator platform hooks go (the registry answers), tests for the ported decorators 2026-10-12 02:18:10 +02:00
piexel f51ba05ec5 Iris implements the placement facade; the placement stages load from the built-ins jar
IrisPlacement implements ObjectPlacement over the placement's object, IrisObjectPlacement, placer and states
(IrisObjectShape, IrisPlacementSettings, IrisPlacementTerrain). The placement modules leave IrisModuleHost and join
JAR_MODULE_IDS and BuiltInPack.jarModules(); the new host module iris:placement-settings describes the classes
IrisObjectPlacement holds, which a jar module may not. Tests ported; IrisPlacementTest and ObjectSpinKernelTest added.
2026-10-12 02:09:14 +02:00
piexel 802c384123 Object placements and procedural objects come from iris:objects' module settings (ObjectPlacements) instead of IrisBiome/IrisRegion/IrisDimension fields 2026-10-12 02:07:38 +02:00
piexel d15c3480ab Host side of the carve port: NoiseSampler signed and scaled, minHeight, cave biome of a block, MatterMantle over the invocation's mantle, CaveDressing over layers, decorators and palettes, carve leaves the compiled-in list 2026-10-12 02:07:13 +02:00
piexel 7d9fd3faa6 Core asks for native structure starts and locates through the structure services
ModuleServices gains placedStructures, placesStructure, startedStructures, startsStructure, canLocateStart and
locateStart (a SEARCH_LIMIT_REACHED outcome instead of an exception); StructureHandler, the Bukkit and modded locate
commands and suggestions, the native structure stages, NMS IrisChunkGenerator and NativeStructureLocatePersistence
use them instead of IrisStructureLocator. StructureReachability keeps its keys per world; the hotloader no longer
invalidates locator caches. StructureCaveAnchorResolverTest binds a platform itself (it relied on test order).
2026-10-12 02:06:14 +02:00
piexel 15a7250ffe Host side for ported terrain, decorant and deposit: caverns layer, surface kind, image-map ground blocks, bottom world Y, the upper dimension, biomes' own settings, vanilla biome, ore variants, COMPLEX seed; deposit leaves the compiled-in list 2026-10-12 02:01:13 +02:00
piexel 1a849643bd PlacementSettingsDecodingTest: an object placement's loot, vanillaLoot and markers read their old fields 2026-10-10 18:25:05 +02:00
piexel 13b8de3458 The deserialization probe reads loot, spawner and entity files through the pack's resources 2026-10-10 18:22:58 +02:00
piexel ae73115c5a iris:loot and iris:spawn leave the compiled-in list for the built-ins jar (JAR_MODULE_IDS, BuiltInPack.jarModules); pack-reading tests put the jar into their pack; the entity key completion reads the pack's entity ids; the missing-jar warning names loot and spawns; RarityWeightingTest replaces IRareWeightingTest 2026-10-10 18:21:37 +02:00