From df6081b7b7a87ecaf346a9f046fb2c03e5b84859 Mon Sep 17 00:00:00 2001 From: piexel Date: Sat, 10 Oct 2026 13:16:39 +0200 Subject: [PATCH] README: the built-ins jar holds post, perfection and matter; the built-in facades --- README.md | 18 +++++++++++++++--- .../art/arcane/iris/builtin/package-info.java | 4 ++++ 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 4bf62dc47..d10d9dae6 100644 --- a/README.md +++ b/README.md @@ -93,6 +93,18 @@ module jar for a pack's `modules/` folder. `builtin-modules.txt` lists what goes (the jar's entry points, written to `META-INF/services/com.volmit.IrisModule`) and `include ` lines for further classes. The classes come from Iris core's compiled output, which the task builds first. Before the jar lands in `build/libs`, `ModuleJarCheck` of IrisApi runs the class checks of a pack load on it, -with `art.arcane.iris.builtin` as the only exposed Iris package; a listed class that uses Iris internals fails -the task naming the class and what it uses. `check` runs the task. Nothing is ported yet, so the jar is empty -and not loadable as a pack module (a pack module jar must name at least one module). +with the packages Iris exposes (`art.arcane.iris.builtin`, VolmLib's `art.arcane.volmlib` and Gson's +`com.google.gson`, all three on the check's classpath); a listed class that uses Iris internals fails the task +naming the class and what it uses. `check` runs the task. + +The jar holds `iris:post`, `iris:perfection` and `iris:matter`. They are written against IrisApi and +`art.arcane.iris.builtin` alone: the chunk's `BlockState` hunk, the block registry's traits and `canPlaceOn`, the terrain +sampler (heights around the chunk, slope, fluid height, where the upper dimension begins) and the mantle's planned blocks. +Iris no longer compiles them in (`IrisModuleHost.generationModules()`), so a pack gets them by putting +`iris-builtins.jar` into its `modules` folder; the built-ins that order after their stages (`iris:floating`, +`iris:decorant`, `iris:custom`) only order, so a pack without the jar still loads. + +`art.arcane.iris.builtin` also holds the few facades only Iris's own built-ins use, interfaces Iris's worlds implement: +`IrisSeed` (Iris's per-feature world seeds, so existing worlds generate the same) and, until wave 3a's settings moves +land, `PendingSettings` (the dimension's `hideOresForHiddenOre`, `postProcessingWalls`, `postProcessingSlabs` and a +biome's `wall` and `slab`, which agents C and T are turning into module settings; it is deleted at that merge). diff --git a/src/main/java/art/arcane/iris/builtin/package-info.java b/src/main/java/art/arcane/iris/builtin/package-info.java index 49b8bca4e..b9f9bccec 100644 --- a/src/main/java/art/arcane/iris/builtin/package-info.java +++ b/src/main/java/art/arcane/iris/builtin/package-info.java @@ -27,6 +27,10 @@ * subpackage per built-in module, named after the module path, such as {@code art.arcane.iris.builtin.deposit} * for {@code iris:deposit}. *

+ * Besides those, it holds narrow facades only Iris's own built-ins use, interfaces Iris's worlds implement, for what + * they need from Iris's internals and no pack module does: {@link art.arcane.iris.builtin.IrisSeed}, and the transitional + * {@link art.arcane.iris.builtin.PendingSettings}. Keep them few: each is a promise. + *

* Some built-in stages produce Iris's own types, such as the placement settings of {@code iris:prepare}. A * pack module can require such a stage to run after it, but cannot read its output: the pack load rejects * a pack class that uses a type Iris hides.