Commit Graph
143 Commits
Author SHA1 Message Date
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 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 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 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 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 44c5b0ed8a Studio's layer view reads the biome's layer styles through IrisValues 2026-10-12 02:40:40 +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 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 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 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 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 0cfcada4f2 Native placed features are decided by the pack's VanillaFeatures providers, kept per world
NativeFeatureGenerationPolicy asks VanillaFeatureAnswers (new, core/modules, per world in the state store): the pass runs
when any provider turns it on; a step or feature any provider refuses is skipped; each asked once per world.
ModuleServices.vanillaFeatures. The Bukkit NMS and modded imported-feature stages decide their steps once per table
(platform step index) and ask per feature through the policy; the table no longer holds the dimension's control.
resolve/generationStatusMessage and their status enum had no caller outside tests and are gone.
IrisModuleHost.JAR_MODULE_IDS and BuiltInPack.jarModules() list iris:vanilla-features.
Tests: NativeFeatureGenerationPolicyTest (through the built-in module and pack modules, asked once per world, step
order), ImportedFeaturesTest (was IrisImportedFeatureControlTest), VanillaFeaturesSettingsDecodingTest,
SchemaBuilderParityTest +1 (was ImportedFeatureControlSchemaTest).
2026-10-10 18:16:20 +02:00
piexel 7aa06e58f2 Mechanical: LootResolver moves to IrisModule's art.arcane.iris.builtin.loot (imports) 2026-10-10 18:02:53 +02:00
piexel 05fb6a170a Mechanical: Vector3i, IrisVector, IrisBlockVector, VectorMap, AtomicCache and Cache's key helpers come from VolmLib (Iris's copies deleted) 2026-10-10 15:18:05 +02:00
piexel 9d886e3c69 Iris binds AtomicCache's failure handler to its logging and error reporting at startup 2026-10-10 15:18:05 +02:00
piexel 95283099fe Host side of ModuleLog: Iris's log carries each module's lines labelled and follows the debug setting, worlds, services, hooks and vanilla structure fits are scoped to the module they are handed to; module signatures that gained a log 2026-10-10 14:25:52 +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 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 6a1d2564e2 Pin the blocks of every object place mode and of the native structure fit before they move
ObjectPlaceModePinTest hashes the writes of each of the 20 object place modes on a fixed uneven terrain with a cave roof.
NativeStructureFitPinTest hashes the blocks one chunk's native structure fit leaves for ENCASE, SOURCE bury, encapsulate
and beard, VACUUM with its foundation repair, BORE and FORCE_CARVE, and stilts, with fits restored from the records
ownership persists. NativeStructureLayoutPinTest pins the vertical placement of platform starts per adjustment and the
reference envelope per terrain fit.
2026-10-10 00:42:35 +02:00
piexel 75cd4979a7 Tests for declared settings keys: real pre-port pack files, key clashes, one shape
Decodes files of the overworld pack as written before the port (biome with
decorators and deposits, region, dimension with importedStructures and deposits),
refuses the feature id and the wrong shape, and checks that built-in keys clash with
neither each other nor Iris's fields.
2026-10-09 23:27:24 +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 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 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 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 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 2851e5d304 Put the slim libraries pack validation needs (Caffeine, Paralithic) on the Bukkit plugin's test classpath 2026-10-09 14:48:13 +02:00
piexel 25fd24b7c2 Merge wave1/a2 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 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 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 0f63a3c59a Replace world modes with one generation path through the module pipelines
EngineGeneration replaces the engine mode: it generates the mantle around a chunk, then runs the
pack's chunk graph, Iris's built-in stages included, and keeps the per-runtime state built-in stages
need. IrisChunk carries the biome hunk and multicore flag, IrisMantleChunk gives built-in mantle stages
Iris's mantle writer, and the module mantle component now runs as the first pass, where carving ran.
Built-in modules are loaded with Iris's pack object model as host types.
2026-10-08 12:02:38 +02:00
piexel 2aab5ae9a3 Show pack modules' settings in studio and reload them when their jars change
- SchemaBuilder renders the settings the pack's modules add: each
  feature at a dimension, region, biome or object placement becomes a
  property under its id and, for built-ins, its alias, with a constraint
  that an object holds only one of the two. Each settings class is one
  definition; options carry their kind, bounds, defaults and
  descriptions, and references complete from the same lists Iris's own
  fields use.
- The code workspace writes a schema for each module snippet type under
  snippet/<name>/.
- A pack whose modules fail to load gets no workspace; the error is
  logged instead of writing schemas without the modules.
- PackModuleSet forgets loaded or failed modules once the jars in
  <pack>/modules change, and the workspace then reloads the pack data, so
  studio picks up rebuilt module jars. The studio hotload watcher now
  also reacts to .jar files.
- Placement tests name Iris's built-in states by their own keys, since
  those resolve once per JVM with whichever platform a test bound first.
2026-10-08 08:44:18 +02:00
piexel 846bd3e696 moved 2026-09-17 16:40:27 +02:00
Brian Neumann-Fopiano 27799039d1 Bind generation context
- Resolve first-generation engine binding from authoritative published level context.
- Validate generator identity and recover canonical Overworld binding from stale snapshots.
- Add shared loader regression tests and their Mockito test dependency.
2026-08-28 16:30:11 -04:00
Brian Neumann-Fopiano fd8c55076e Bridge host levels
- Publish and remove dynamic levels through host lifecycle methods when available.
- Attach hybrid host level data before engine binding and publication.
- Preserve native loader behavior when host extensions are absent.
2026-08-28 16:30:05 -04:00
Brian Neumann-Fopiano 1ca943ab51 Remove Sentry
- Remove automatic error reporting and server-identifying attachments.
- Remove Sentry dependencies, release tooling, settings, and test commands.
- Keep failures operator-visible through local stack traces and logging.
2026-08-28 16:29:33 -04:00
Brian Neumann-Fopiano 2b92fbf825 iris release commits 2026-08-27 02:47:05 -04:00