Commit Graph
4716 Commits
Author SHA1 Message Date
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 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 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 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 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 4de4b346aa Reconcile wave 1 test fixtures: one serveModules helper, stub the pack folder after it 2026-10-09 14:47:05 +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 b1414a1753 Merge wave1/b 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 43aafc743e Test the deposit pilot: existing deposit JSON reads the values Iris read into DepositGenerator, snippets in either reference form, ResolvedDeposit's clumps, salt, ore and biome filters, and the deposit settings schema as a module class 2026-10-09 14:32:20 +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 24920c9113 Shade IrisApi into core so built plugin and mod jars can load packs 2026-10-08 15:38:31 +02:00
piexel d57f3cd39c Let the cave application test's block mocks answer hasGravity 2026-10-08 15:30:39 +02:00
piexel cf53a54324 Test that vacuum targets are clamped in placer heights for a dimension starting at -64 2026-10-08 15:25:58 +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
piexel 9b20fc9c91 Bridge mantle access for placement stages: writes are buffered with the placement and reach the mantle on its commit 2026-10-08 14:09:27 +02:00
piexel a07788fffe Transform objects for placement stages with Iris's object rotation 2026-10-08 13:59:05 +02:00
piexel d2b4904263 Serve the pack snapshot's objects, biomes and regions to chunk, mantle and placement stages through PackResources 2026-10-08 13:56:12 +02:00
piexel 21efc385da Delete the engine actuator and modifier base classes and follow the carve rename in the cave tests 2026-10-08 13:47:00 +02:00
piexel a319b36f2d Remove insertMatter from EngineMantle, test matter insertion, share one block platform between the stage tests 2026-10-08 13:41:31 +02:00
piexel f4953497a9 Test custom block recording 2026-10-08 13:32:44 +02:00
piexel d1b3299921 Test floating islands 2026-10-08 13:30:29 +02:00
piexel d2094f3e6a Test surface smoothing 2026-10-08 13:26:42 +02:00
piexel 0b9b873dfa Test decorating through the iris:decorant module and make the terrain test order independent 2026-10-08 13:24:21 +02:00
piexel 4d0ed3a635 Test terrain shaping through the iris:terrain module 2026-10-08 13:18:00 +02:00
piexel 22df943860 Disable mantle stages by flag or stage id in disabledComponents, warn about names that match nothing, offer pack stage ids in studio 2026-10-08 13:09:03 +02:00
piexel 2cfb6f0d93 Add a timing test for the any-column settings activation scan
It runs a mantle stage conditioned on settings against the same stage without a condition, over
Iris's own ChunkModuleSettings with a biome border in every chunk, and prints the difference per
chunk. It runs only with IRIS_TIMING=1. Measured: about 31 us per chunk and conditioned settings
type, before Iris's cached region and biome stream reads, so the scan is left as it is.
2026-10-08 12:51:05 +02:00
piexel 81934654ed Pin the flags studio offers for disabledComponents, CARVED included 2026-10-08 12:49:37 +02:00
piexel c0e8b5e7e1 Buffer module mantle edits and remove short-lived module layers on mantle cleanup
Mantle.edit() is bridged: an edit buffers sets and removals across layers per block, its reads and
visits see them over the unchanged mantle, and commit() publishes them all, or none when a chunk it
touches was not prepared; the edit can then only be closed. While an edit is open the view itself only
reads, a second edit is refused and edits do not nest.

Module layers registered with the GENERATION lifetime are now removed when Iris cleans a generated
mantle chunk, in both the covered cleanup and the pregenerator's forced cleanup, as Iris deletes its own
transient slices (GenerationLayers). Persistent layers and layers no loaded module registers stay,
retaining ModuleLayerValues keeps them all, and a pack whose modules fail to load keeps its layers.
2026-10-08 12:49:00 +02:00
piexel 0a06d5ff29 Run every mantle stage as a mantle pass of its own, ordered by the stage graph
ModuleMantleComponent now runs one mantle stage. IrisEngineMantle builds one component per stage of the
pack's mantle graph, in resolved order, each its own pass, when first needed after a load or hotload,
so a pack mantle stage can order itself after Iris's objects and structures. A stage's radius is its
reach, worked out from the pack (IrisPackSettings: the dimension, its regions and biomes). Iris's own
stages keep the flags of the components they replace (CARVED, OBJECT, FLOATING_OBJECT, JIGSAW), so
disabledComponents keeps working; pack stages get custom flags in order (MantleStageFlags).

There is one mantle path now: the separately registered object, floating object and structure
components, IrisMantleComponent, the ComponentFlag annotation, registerComponent and
getObjectComponent are gone. Engine.getObjectsAt asks the runtime's ObjectPlacing.
2026-10-08 12:44:43 +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 fb348d26c8 Run the pack's mantle pipeline as one mantle component and bridge the mantle to modules
ModuleMantleComponent runs the mantle stages of every chunk the mantle prepares, after Iris's own
components, with a radius of the pipeline's declared reach; it is disabled while the pack has no mantle
stages. IrisModuleMantle gives stages Iris's mantle in world coordinates: every module layer of a block
is kept in one ModuleLayerValues slice, encoded with the layer's codec, and layers no loaded module
registers keep their bytes. Chunk stages read their own chunk's mantle.
2026-10-08 11:48:11 +02:00
piexel efa6cb4b4a Read module settings per column with every level as its own entry
Chunk stages now run where any column of the chunk configures their settings, and every level
(dimension, region, surface biome, placement) is its own entry: the most-specific-wins merge is gone.
Settings with one option accept a bare JSON value, Iris's pack object classes in built-in settings are
read with the pack's own Gson, and studio renders both: the shorthand as an alternative form and Iris
classes with Iris's own definitions.
2026-10-08 11:38:27 +02:00
piexel 5f30e27485 Cover an object's declared size in its placement area
Boring and terrain bends cover the object's declared size, which can be
larger than the bounds of its blocks, so the placement area now reaches
whichever of the two is farther from the anchor.
2026-10-08 08:52:44 +02:00