Commit Graph
5247 Commits
Author SHA1 Message Date
piexel d3c0e4d6cc Bundled jars: no special case for a pack's own copy
Nothing is released, so a pack holding an old copy of a bundled jar
gets no compatibility handling: it fails like any pack whose jars hold
the same class, naming both ("Class ... is in both module jars
iris-builtins.jar (bundled with the host) and
modules/iris-builtins.jar"). Removes LoadedPack.replacedJars() and the
bundled file name checks. Jar copies in a load's snapshot are named by
their place in the load, so same-named jars from the host and the pack
no longer collide before that check can name them.
2026-10-22 09:55:12 +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 242ca3e323 Iris packages and bundles the built-ins jar; this build copies it
The built-ins jar is now packaged and checked by Iris's
:core:builtinModulesJar from core's own compiled classes and bundled
into the plugin, so it always fits the Iris it ships with.
builtinModulesJar here runs that task and copies the jar to build/libs;
the packaging, entry file and check tasks moved to Iris, with the
VolmLib include build they needed.

SurfaceFitting (structure fitting, still Iris's) has its own outset
instead of calling IrisObjectVacuum, which lives in the jar only: the
plugin no longer carries the jar's classes outside the jar.
2026-10-22 09:45:37 +02:00
piexel 98c090d5b2 A host can bundle module jars that load with every pack
ModuleHost.bundlingJars(...) names jars the host ships itself. Every
pack load copies and loads them as if they were in the pack's modules
folder: first, in the given order, in the pack's class loader, so pack
jars can still require their stages. A pack jar with a bundled jar's
file name, such as an old copy, is left out, so a pack never loads a
stale copy next to the host's; LoadedPack.replacedJars() names it for
the host to tell the owner. Messages name a bundled jar
"<name> (bundled with the host)".

JarSnapshot now takes each jar's origin from its caller, since a
bundled jar does not lie under the pack.
2026-10-22 09:40:22 +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 f06908a20f Placement stages register the held types Iris's IrisObjectPlacement holds
iris:prepare (slope clip, rotation clamp), iris:validate (limit), iris:stilt, iris:vacuum and iris:blocks (replace) describe
their own classes; the host module iris:placement-settings is no longer needed.
2026-10-19 15:29:32 +02:00
piexel 74d83b5be1 Loot validation names why a table cannot be read
The validator reports the load's reason (such as a field of the wrong type) instead of pointing at the log.
2026-10-19 15:29:32 +02:00
piexel bd7c1a226a README: structure model is Iris's, iris:floating and iris:structure ship in the jar 2026-10-15 13:11:49 +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 e3e8db3329 Reference.PACK_STRUCTURE: a jigsaw structure of the pack
Lets a settings class name the pack's structures by key without naming the
host's structure class, like PACK_BIOME and PACK_OBJECT.
2026-10-15 13:03:42 +02:00
piexel c9058e0892 Structures generate from the built-ins jar
iris:structure moves into the jar as a thin module: it declares the structure
placement settings and the mantle stage, and Iris places the structures through
a StructureHost facade. The structure model, assembler, locator, fitting and
placing stay host. The resource kinds become iris:structure-model/*, owned by
Iris's own module. StructurePlacement names its structures with
@Ref(Reference.PACK_STRUCTURE), so the exposed package names no host class.
CaveProfiles had no users and is removed.
2026-10-15 13:03:42 +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 2ae16b9c9e Floating islands generate in the built-ins jar
FloatingModule, FloatingIslands, the island sampling and the floating object
placing move to the jar on IrisApi types. Iris answers through a FloatingHost
facade: surface biomes, biome lookups and heights, sky biome painting, object
footprints, shrinking and the placement of an object against an island face
(IslandAnchor). FloatingChildren becomes the per-world FloatingWorld,
IslandObjectPlacer the jar's IslandFace, and UndersideTurn turns a footprint the
way Iris's flipped rotation does. The island memos key columns by a Column
record instead of packed longs, whose Long hash collides along diagonals.
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 d8612fae27 Procedural objects generate in the built-ins jar
The generators build their variants on IrisApi block states through ObjectBuilder, which the host gives out
(ObjectHost.builder()), so a content plugin's block keeps its identity. Each world resolves its procedural
placements once (ObjectHost.procedural(settings, resolve)); the placements describe themselves (clamp, stilt)
and the host reads them as Iris placements. engine/object/procedural goes into iris-builtins.jar.
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 b630efb818 Structure placement markers move into the exposed package; the blocks stage looks up spawn markers itself 2026-10-15 11:22:39 +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 c3ed24364f Merge branch 'wave3b/2'
# Conflicts:
#	builtin-modules.txt
#	src/main/java/art/arcane/iris/builtin/package-info.java
#	src/main/java/art/arcane/iris/engine/mantle/components/ObjectPlacing.java
#	src/main/java/art/arcane/iris/engine/object/terrain/floating/ResolvedFloatingChild.java
#	src/main/java/art/arcane/iris/engine/object/world/biome/IrisBiome.java
#	src/main/java/art/arcane/iris/engine/object/world/biome/IrisBiomeColorRenderer.java
#	src/main/java/art/arcane/iris/engine/object/world/dimension/IrisDimension.java
#	src/main/java/art/arcane/iris/engine/object/world/region/IrisRegion.java
2026-10-15 07:29:06 +02:00
piexel f44b31edd0 Merge branch 'wave3b/2' 2026-10-15 07:28:26 +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 0cd2a0e195 The bedrock check asks the height first, so a placement above the bottom rows never reads the dimension's bedrock setting 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 3eb987680e Carve dresses caves with the terrain and decorant built-ins' layers, palettes and decorators directly, now that all three ship in the jar: CaveDressing becomes carve's own seam 2026-10-15 07:23:42 +02:00
piexel 81e8b300ef Merge branch 'wave3b/4'
# Conflicts:
#	builtin-modules.txt
#	src/main/java/art/arcane/iris/builtin/package-info.java
#	src/main/java/art/arcane/iris/engine/mantle/components/CaveCarving.java
#	src/main/java/art/arcane/iris/engine/modifier/CarveModule.java
#	src/main/java/art/arcane/iris/engine/modifier/CaveApplying.java
#	src/main/java/art/arcane/iris/engine/modifier/IrisCarveScratch.java
#	src/main/java/art/arcane/iris/engine/object/placement/VacuumModule.java
#	src/main/java/art/arcane/iris/engine/object/placement/ValidateModule.java
2026-10-15 07:15:17 +02:00
piexel 58ed81032c Merge branch 'wave3b/4'
# Conflicts:
#	README.md
#	src/main/java/com/volmit/world/TerrainSampler.java
2026-10-15 07:13:58 +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 182bb12cbc iris:objects docs for the objects facade; ResolvedTree and ResolvedProceduralObjects drop what nothing reads; EffectivePlacements says what the dimension really does 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 4644d94331 Merge branch 'wave3b/5'
# Conflicts:
#	README.md
#	builtin-modules.txt
2026-10-15 07:08:36 +02:00
piexel 3480861f41 Merge branch 'wave3b/3'
# Conflicts:
#	README.md
#	builtin-modules.txt
2026-10-15 07:08:21 +02:00
piexel f7e8b74745 Merge branch 'wave3b/1'
# Conflicts:
#	README.md
#	builtin-modules.txt
#	src/main/java/art/arcane/iris/engine/object/placement/BlocksModule.java
2026-10-15 07:08:13 +02:00
piexel 2fa678cce2 Merge branch 'wave3b/6' 2026-10-15 07:07:40 +02:00
piexel 53b838bd3f PackResources keeps one idOf: the lower-casing ofPackKey one both merged branches added 2026-10-15 07:07:36 +02:00
piexel dc28e0ecda Docs: the terrain sampler's biome, kind, ground block, bottom Y and upper dimension, the caverns layer, declaredBy, oreFor, the chunk mantle's reach 2026-10-15 07:07:12 +02:00
piexel b047a2675d Merge branch 'wave3b/5' 2026-10-15 07:06:59 +02:00
piexel 3ab8b88e56 Merge branch 'wave3b/3'
# Conflicts:
#	CONTRACTS.md
2026-10-15 07:06:59 +02:00
piexel 1ea5d70eaa Merge branch 'wave3b/6' 2026-10-15 07:06:52 +02:00