Commit Graph
5317 Commits
Author SHA1 Message Date
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 910eab1f79 iris:spawn: EntitySpawns provider; entity, item and attribute Bukkit behaviour moved out of the model classes 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 f7d11e5cf0 Carving settings as module-owned IrisApi types: cave profile, cave field module, anchor mode, carving mode 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 8a6bc5bfc0 importedStructures becomes iris:structure settings; the native structure planner moves into the module's vanilla hook
builtin.structure: StructureSettings (feature iris:structure, target DIMENSION, the JSON of IrisImportedStructureControl:
disabled, disabledExact, undergroundYShift, datapackOverrides, frequencyOverrides, adjustments), StructureSetFrequency,
StructureAdjustment, IrisApi types only (fits are StructureTerrain, StructureStilts, YBand).
ImportedStructures reads them: disables (family and exact keys), adjustment per structure and underground step,
setup (frequencies, protecting vanilla definitions), matchesKey. NativeStartPlanner is the planner that was core's
(selectSource, resolveBaseY, priority by placementIdentity, same RNG domain). StructureVanillaHook answers rule
(REPLACE/BLOCK/ALSO_PLACE from placements and settings), adjustment, starts (planner plans as VanillaStructureStarts,
heights above the bottom) and setup; StructureModule registers it and its settings.
Deleted: IrisDimension.importedStructures, IrisImportedStructureControl, IrisVanillaStructureAdjustment,
IrisStructureSetFrequencyOverride, RegistryListVanillaStructureSet, RegistryListVanillaStructure.prefixes.
2026-10-09 22:09:38 +02:00
piexel 94be126d25 Document the vanilla structure hook's starts, adjustments and setup
README (the three methods, an example start, the fit value types, the new Reference kinds), DESIGN (why starts are
a hook method, why the platform's own starts get a second per-structure method, fit values as value types, setup
before a world exists), CONTRACTS (types, adapter requirements; the planner item leaves Open).
2026-10-09 22:07:29 +02:00
piexel 27ffdb08bd Add the SaplingGrowth service 2026-10-09 22:05:41 +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 e94d8e00f7 iris:objects grows saplings into trees and names the objects it places as trees (TreeGrowing) 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 c4c8fa69d3 ObjectPlaceMode, AnchorSampling and StiltShape move to art.arcane.iris.builtin.anchor with IrisApi annotations 2026-10-09 22:04:03 +02:00
piexel ad581be494 Add ItemDrop, ItemRegistry and the Loot and BlockDrops services 2026-10-09 22:02:47 +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 a1af4a85ff iris:loot: Loot and BlockDrops providers, loot table resolution and item drawing moved out of core 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 9401e8aa78 Placement settings as module-owned IrisApi types: object limit, slope clip, stilt, vacuum, block replace, axis rotation clamp 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 587c24deb5 Decorators become iris:decorant settings of IrisApi types; the decorant module keeps the resolved decorators per world
Decorator, DecorationPart, DecoratorSlope and DecorantSettings (iris:decorant, biome level) replace IrisDecorator
and IrisDecorationPart. ResolvedDecorator holds the blocks and noise, BiomeDecorators the per-world buckets, warm-up
and load figures. Ore and object warm-up move into the terrain and objects modules' warmUp.
2026-10-09 21:59:43 +02:00
piexel ba96e0cbc2 ObjectsAt.placedBy: the biomes and regions whose settings place an object 2026-10-09 20:51:05 +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 37bc1a0e70 ObjectLocating: iris:objects names the biomes and regions that place an object 2026-10-09 20:51:05 +02:00
piexel c90ce5ce47 Vanilla structure hook: starts, adjustments and setup, with the fit value types they carry
VanillaStructureHook gains three default methods: starts(chunkX, chunkZ, context) for the platform
structures a module starts itself, adjustment(structure, underground, context) for what it changes
about the platform's own starts, and setup(context) for structure set frequencies and protecting the
platform's own definitions from installed data packs. Values: VanillaStructureStart,
VanillaStructureStartContext, VanillaStructureFit, VanillaStructureAdjustment, VanillaStructureSetup,
and the settings-shaped StructureTerrain, StructureStilts, YBand and JigsawOverrides with the JSON
Iris already reads. Reference gains STRUCTURE_PREFIX and STRUCTURE_SET.
2026-10-09 20:50:59 +02:00
piexel 668d46bd91 Let built-in modules describe the classes Iris's own classes hold (registerHeldType) 2026-10-09 20:46:24 +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 63bd3e3de8 Keep the object scale cache in world state and the structure graph catalog per resource snapshot
IrisObjectScale takes the engine and keeps its scaled variants in the world's state store; the structure graph
catalog is keyed by the pack's resource snapshot. Both are rebuilt when a resource reload starts a new world or
snapshot, so IrisData no longer invalidates them by hand.
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 46676fd99b Fix the ModuleHost javadoc after the removal of reserved fields 2026-10-09 20:34:29 +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 435d3798fd Add PaletteSpec, PaletteSampler and BlockRegistry.palette 2026-10-09 20:28:54 +02:00
piexel c1f23830a2 Put @MinItems(1) back on the deposit generator's palette and biome lists 2026-10-09 20:27:12 +02:00
piexel f3619e1c30 Render @MinItems as minItems in studio's module settings schema 2026-10-09 20:27:12 +02:00
piexel 0f05676b7a Add @MinItems for list, set and array options and describe it in the pack schema 2026-10-09 20:26:31 +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 3c05cfea0a Add the warmUp lifecycle hook and LifecycleRunner.warmUp 2026-10-09 20:22:29 +02:00
piexel 04ce02c042 iris:deposit is written under its feature id only; drop the deposits alias 2026-10-09 20:21:14 +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 f6c078aade Remove feature aliases, the one-option shorthand and reserved host fields
A setting has one JSON key, its feature id, and one shape, its settings object.
Aliases were the only reason for reserved host fields (ids contain ':', host
fields never do), so ModuleHost.reservingFields goes too.
2026-10-09 20:19:08 +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 c895fe117f Merge wave1/a2 2026-10-09 14:47:05 +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 99a914633d Merge wave1/a2 2026-10-09 14:44:29 +02:00
piexel f0f3c4d1b8 Merge wave1/a1 2026-10-09 14:43:33 +02:00
piexel 25fd24b7c2 Merge wave1/a2 2026-10-09 14:43:33 +02:00
piexel adb848bf9f Merge wave1/a1 2026-10-09 14:43:33 +02:00
piexel 94c2ef3ab0 Merge wave1/b 2026-10-09 14:43:33 +02:00
piexel 9c69f1ea88 Merge wave1/a1 2026-10-09 14:43:33 +02:00
piexel b808f610c6 Merge wave1/b 2026-10-09 14:43:33 +02:00
piexel b1414a1753 Merge wave1/b 2026-10-09 14:43:33 +02:00
piexel 20d504bd28 Say that a missing image map fails noise building, as Iris's image noise does, instead of falling back 2026-10-09 14:42:33 +02:00