Commit Graph
1022 Commits
Author SHA1 Message Date
piexel 339efd6174 Cave biomes ask the world's CaveBiomes provider through CaveBiomeAnswers, kept per world: the provider is found once, each biome's minimum depth asked once and each overriding biome loaded once (it was a catalog scan twice per cave block) 2026-10-10 14:46:22 +02:00
piexel b6a216462d A loaded pack's modules are handed out without taking the module set's lock: every cave biome asks for them, from every generating thread 2026-10-10 14:46:22 +02:00
piexel 6ab318d445 Merge feat/irisapi-host (T, C, L) into wave3/s: iris:post reads T's settings and the biomes' wall and slab through the shared LayerBlocks, perfection reads C's hideOresForHiddenOre; PendingSettings is gone; decoding tests load every built-in 2026-10-10 13:35:44 +02:00
piexel 405ab0fb2d Iris's worlds give the built-ins their IrisSeed; facade tests 2026-10-10 13:15:34 +02:00
piexel c270f79827 Mechanical: LazyBoundedCache comes from VolmLib (art.arcane.volmlib.util.cache); Iris's copy and its test moved there 2026-10-10 13:12:33 +02:00
piexel 08a4f64d9f Startup datapack ingest skips a pack whose modules fail to load, naming it, and asks the other packs 2026-10-10 13:11:15 +02:00
piexel 213bdf9842 Iris exposes VolmLib and Gson to pack modules; iris:post, iris:perfection and iris:matter leave the compiled-in built-ins for the built-ins jar; tests load them from a pack's modules folder and through the API alone 2026-10-10 13:10:24 +02:00
piexel bdf1389d77 Host side of the module surface: planned mantle blocks, VINE and canPlaceOn, fluid height and upper dimension, a chunk sampler over the neighbors, conversions that keep platform identity, stage timings into the named metrics, Iris's pending settings for the built-ins 2026-10-10 13:10:19 +02:00
piexel b60ca588fe Merge branch 'wave3/l' into feat/irisapi-host 2026-10-10 13:05:52 +02:00
piexel 94f7551fa0 Merge branch 'wave3/c' into feat/irisapi-host
# Conflicts:
#	core/src/test/java/art/arcane/iris/core/modules/DecorantSettingsDecodingTest.java
#	core/src/test/java/art/arcane/iris/engine/actuator/TerrainModuleTest.java
#	core/src/test/java/art/arcane/iris/engine/object/world/biome/IrisBiomeInferenceIsolationTest.java
2026-10-10 13:05:52 +02:00
piexel fbbc9ce4ac Modded loot, drops, spawns, mobs and effects ask the modules through host-typed content services 2026-10-10 13:00:03 +02:00
piexel 781ff0931d Core stops reading the cave, floating and ore settings
Engine.getCaveBiome asks the pack's CaveBiomes service (ModuleServices.overriddenCaveBiome, caveMinDepthBelowSurface) instead of the
carving resolver and the biome's field; the State overload is gone and the Bukkit nms biome source stops threading one.
ModuleSettings.treeBiomes/usedBiomes feed IrisRegion.getAllBiomes and IrisDimension.getReachableBiomes from LinkedBiomes settings.
Tests: decoding of every moved key on the pre-port pack files (OreSettingsDecodingTest, CarveSettingsDecodingTest,
FloatingSettingsDecodingTest), CarvingResolverParityTest (was IrisDimensionCarvingResolverParityTest), EngineCaveBiomeTest,
CaveBiomeBandsTest, IrisRegionBiomeTreeTest, MovedModuleFieldsTest, the inferred variant keeps its module settings, and the
tests that built biomes with the removed fields use module settings
2026-10-10 08:51:28 +02:00
piexel f404dec7d7 Core stops reading loot, spawn and effect classes: services, resource closure for exports, key handler for entities 2026-10-10 08:46:33 +02:00
piexel f7872685ce Core stops reading biome layers, slab, wall and the dimension's rock, fluid and post processing fields
IrisComplex, UpperDimensionContext and ChunkContext lose the rock and fluid streams, the engine loses the layer density, studio's style timings read the terrain module. Pins of layers and palettes now run through the module classes; tests for the settings of the new keys read real pack files.
2026-10-10 08:37:08 +02:00
piexel 133fb377de Studio completes jigsaw start pools through Reference.TEMPLATE_POOL; purity allowlist tightened
SchemaBuilder renders TEMPLATE_POOL with the platform's template pools (enum-native-jigsaw-pool) and drops the
RegistryListNativeJigsawPool branches. SchemaBuilderParityTest checks a native structure's jigsaw startPool completes
them. WorldCreationProgressReporter no longer imports Bukkit, so it leaves the purity allowlist (184 entries).
2026-10-10 08:05:00 +02:00
piexel 248a087c17 Core and adapters stop reading ObjectPlaceMode; tests for the place mode data
The jigsaw export and the Bukkit and modded structure commands ask the module (stampsPiecesWhereAssembled,
stampingStructurePieces) instead of comparing place modes. ObjectPlaceModeDataTest checks the data reproduces what the
stages decided by comparing modes; the object place mode pin stays identical.
2026-10-10 03:54:40 +02:00
piexel 0b3556f09c Platform starts fit through a neutral bridge to iris:structure
Core asks the pack's VanillaStructures providers (ModuleVanillaStructures) for rules, starts, the shift of each
platform start and every module's reach, and runs the built-in fit through ModuleStructureFitting, which turns the
platform's chunk into the API's StructureFit. minecraft-common's NativeStructureFitBridge hands Bukkit and the modded
loaders' starts, processed template cells, template columns and legacy air to it; the platform helpers that held the
fit (surface fitter, terrain integrator, support and foundation builders, post processor) are gone. The host only
moves, clamps, wraps and places starts.

Ownership records keep their binary layout: the two texts that held the stilts and terrain JSON now hold the start's
memo, which the module writes in the same JSON, so records written before read the same. A recorded reference
envelope only grows when today's reaches are wider.

Tests: the fit's rules are tested in core against stated cells; the bridge and the fit end to end on the NMS harness;
the object place mode and native structure fit pins stay identical.
2026-10-10 03:50:45 +02:00
piexel b642b7f04e Read module settings under the key their feature declares
The decoder reads a setting under its declared key, as the object of its options or,
for a feature with a root option, as exactly that option's value; a wrong shape fails
naming the key and the resource. The studio schema renders the root option's schema as
the key's one shape. Iris passes its own JSON fields per target to the module host so
no key can take one, and the pack validators and messages name the keys packs write
(decorators, importedStructures).
2026-10-09 23:27:24 +02:00
piexel 45d967b76f Merge branch 'wave2/c' into feat/irisapi-host
# Conflicts:
#	core/src/test/java/art/arcane/iris/engine/decorator/IrisShoreLineDecoratorTest.java
2026-10-09 22:47:33 +02:00
piexel 9e69f0666d Merge branch 'wave2/e2' into feat/irisapi-host
# Conflicts:
#	core/src/test/java/art/arcane/iris/core/project/SchemaBuilderParityTest.java
2026-10-09 22:33:49 +02:00
piexel 0b303eb937 Merge branch 'wave2/d' into feat/irisapi-host 2026-10-09 22:33:42 +02:00
piexel 7ae605a4e4 Purity ratchet: the Bukkit code that moved out of the loot and entity classes is allowlisted, the classes that lost it are not
Custom item durability asks the external data service.
2026-10-09 22:26:05 +02:00
piexel e120991ad3 Iris has no loaders for loot tables, spawners, entities and markers any more
Callers read them through LootResources and SpawnResources; the pack's loot check moved to iris:loot. RegistryMatter
asks its subclass how to load a key, the entity command handler lists entities through the module kind.
2026-10-09 22:24:20 +02:00
piexel 406d3e47d3 Entity spawning asks the EntitySpawns services
WorldEntitySpawner and MarkerSpawnScanner no longer read spawners, entities or markers: modules plan the spawns and
describe the entities as EntitySpec, BukkitEntitySpawner creates them and the host checks light, surface and free space.
Block-break marker cleanup asks the module what a marker means.
2026-10-09 22:16:35 +02:00
piexel d72c96b166 Cave profile tests on the overworld pack's JSON; carvers read the profile through ResolvedCaveProfile; IrisValues exposes the style, range conversions 2026-10-09 22:12:02 +02:00
piexel 23e07c3a5f Host side of the vanilla structure hook's starts, adjustments and setup; the planner is gone
ModuleVanillaStructures asks every hook for rules and adjustments (per engine, structure and snapshot), starts per
chunk (converted to NativeStructureStartPlan, refused outside the chunk asked for) and setup per dimension before a
world exists (DimensionSettings: the dimension's settings without an engine). NativeStructureStartPlan carries the
module's start as host types (structure key, chunk, world base Y, underground, replacesPlatformStart, identity,
IrisJigsawConfiguration, stilt, terrain) and decision(); NativeStructureStarts replaces plansAt/matchingPlan.
NativeStructureGenerationPolicy builds its decision from rule and adjustment only. NativeStructureFrequencies (host)
replaces IrisImportedStructureControl in INMSBinding, Bukkit NMS, DatapackStructureScopeSVC and modded frequency
overrides; DatapackIngestService asks setup for protecting vanilla definitions. IrisValues converts the fit value
types to Iris's classes (same JSON). Studio: Reference.STRUCTURE_PREFIX/STRUCTURE_SET complete like Iris's prefix
and structure set lists; the annotation branches they replace are gone. Validators read the iris:structure key.
Messages name iris:structure instead of importedStructures.

Tests: NativeStructureStartsTest pins the planner's starts for seed 1337 (52 starts) and the fit JSON;
NativeStartPlannerTest (moved), ImportedStructuresTest (was IrisImportedStructureControlTest),
StructureSettingsDecodingTest (migrated overworld JSON), policy, schema, validator, handler, Bukkit NMS and modded
tests ported.
2026-10-09 22:09:44 +02:00
piexel 8bf4fb0115 TreeSVC and TreeDefinitionIndex ask the SaplingGrowth services
The module picks the tree placement and places it into a list of blocks; the host reads the world through
SaplingGrowth.Surroundings and applies the blocks. Custom (external) blocks in a grown tree are placed as their base
block.
2026-10-09 22:05:41 +02:00
piexel bc6d4e8857 Callers of ObjectPlaceMode import it from the anchor module's package 2026-10-09 22:04:03 +02:00
piexel 946ad61f7f Loot and block drops ask the Loot and BlockDrops services
EngineBukkitOps, WorldObjectPlacer and WorldBlockDropRouter no longer read loot classes: the modules name the tables and
return resolved ItemDrops, which BukkitItemStacks creates. LootResolver keeps the generic stream helpers; table
resolution moved to LootTables in iris:loot. IrisLootEvent carries the Loot sources.
2026-10-09 22:02:47 +02:00
piexel 7da0ccde83 Host support for built-in classes Iris's classes hold (studio schema, snippets, bounded palette cache); tests for the placement settings 2026-10-09 22:01:32 +02:00
piexel d8f92b930a Core stops reading decorators: no decoration streams, no biome maxes for them, GenerationCacheWarmer deleted
The decorator density, the warm-up and the decorator palette validation now follow the module's iris:decorant key. The
warm gate only waits for the modules' warm-up. Tests pin the decorator picks against the old IrisDecorator.
2026-10-09 21:59:43 +02:00
piexel 8137f6dba9 HintedLocator asks the ObjectsAt services which biomes and regions place an object
The object search plan no longer reads IrisObjectPlacement: it builds its coarse sampler from the layout entries the
modules name and the biome tree it owns.
2026-10-09 20:51:05 +02:00
piexel 7a3f5961cc IrisData no longer invalidates module caches by hand
Drop StructureGraphCatalog.invalidate and IrisObjectScale.invalidate: the caches follow the pack's resource
snapshot and the module world. The scale cache test builds its engine's world state.
2026-10-09 20:45:00 +02:00
piexel 49b82f7c16 Fix the JsonSchemaValidator javadoc after the removal of aliases 2026-10-09 20:34:51 +02:00
piexel e41c9423a2 Host side of PaletteSpec: IrisBlockRegistry.palette picks like IrisMaterialPalette, studio renders it with Iris's definition 2026-10-09 20:30:00 +02:00
piexel f3619e1c30 Render @MinItems as minItems in studio's module settings schema 2026-10-09 20:27:12 +02:00
piexel 2775a4965b Run module warm-ups with the generation cache warm-up, and for hotloaded and restarted worlds
IrisEngine warms modules after GenerationCacheWarmer for the first world (studio in
the background, server worlds synchronously) and after every hotload or in-place
restart; generation waits for all of them through GenerationCacheWarmGate.
2026-10-09 20:24:49 +02:00
piexel d6228c3074 Settings are keyed by feature id and always an object: drop aliases and the one-option bare value
The settings decoder, the studio schema renderer and the schema builder no
longer know aliases. Tests and fixtures use the iris:deposit object form.
2026-10-09 20:21:14 +02:00
piexel 25fd24b7c2 Merge wave1/a2 2026-10-09 14:43:33 +02:00
piexel 9c69f1ea88 Merge wave1/a1 2026-10-09 14:43:33 +02:00
piexel 5cb83a4232 Give the modded native reference repair test a pack without modules, which the generation policy now asks, and keep IrisValues' conversions to its package 2026-10-09 14:42:27 +02:00
piexel 621e0e65bc Apply vanilla structure hooks on every platform: ModuleVanillaStructures asks the pack's hooks once per engine, structure and snapshot, and NativeStructureGenerationPolicy takes suppression and module placement from them instead of reading the structure locator; also render module enums in studio without failing 2026-10-09 14:41:06 +02:00
piexel f501e3baf7 Give modules a world per engine runtime and pack snapshot with lifecycle hooks, and ask them through services: IrisPackWorld and ModuleWorlds (start on publish, restart when the pack's resources reload, stop on retire), contexts' world(), ModuleServices, Engine.getObjectsAt through ObjectsAt and the Iris structure find path and structure index through StructureLocator 2026-10-09 14:35:32 +02:00
piexel 49d90871fa Serve IrisApi's value types: BlockSpec resolution and block entities through Iris block data, noise from NoiseStyle through Iris generator styles, module snippets under their folder path, AnyKind, and studio rendering value types with Iris's own description of the same JSON 2026-10-09 14:29:14 +02:00
piexel e670f96d26 Load module jars next to the compiled-in built-ins in the built-in pack fixture and leave the iris namespace free
IrisModuleHost no longer reserves the iris namespace. BuiltInPack can serve a pack folder whose
modules folder holds module jars, PackModuleJar writes jars of several modules, and
PackModuleJarNextToBuiltInsTest covers a jar of several modules in the iris namespace and a jar module
with a compiled-in built-in's id failing as a duplicate.
2026-10-09 14:11:43 +02:00
piexel 2f3ba3cebe Serve module resource kinds through IrisPackResources, run module validators wherever packs are validated, and drop the structure, jigsaw pool and piece loaders and validators from core 2026-10-08 20:36:10 +02:00
piexel 12c315bb52 Use IrisStages for built-in stage constants 2026-10-08 16:19:31 +02:00
piexel 844e3205ac Mirror objects along X and Z in the object transformer, mirroring block states through the platform's own mirror 2026-10-08 15:16:25 +02:00
piexel 563c2cd276 Answer the GRAVITY, LOG and LEAVES traits, block tags and attachment to a face from the platform layer, with Bukkit, modded and stub implementations 2026-10-08 15:06:27 +02:00
piexel 818dbef261 Hand IrisApi heights above the dimension's bottom: terrain bounds and the mantle bridge no longer use the world's minimum height, and a test covers a dimension that starts at -64 2026-10-08 14:58:04 +02:00