From 8cf11774dac71b973c084e519f744820626072c2 Mon Sep 17 00:00:00 2001 From: piexel Date: Fri, 9 Oct 2026 22:46:24 +0200 Subject: [PATCH] ResolvedDecorator exposes its seed; README describes iris:decorant --- README.md | 8 ++++++++ .../arcane/iris/engine/decorator/ResolvedDecorator.java | 5 +++++ 2 files changed, 13 insertions(+) diff --git a/README.md b/README.md index 8de696f27..e3b8b082b 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,14 @@ only: `DepositSettings` holds `DepositGenerator`s (blocks as `BlockSpec`, its en `art.arcane.iris.builtin.deposit`), and packs write `"iris:deposit": {"generators": [...]}` (the old `"deposits": [...]` is converted by the pack migration script). What needs Iris (resolving the palette, ore checks, clump shapes per world seed) lives in the module's own code, `ResolvedDeposit`. +`iris:decorant` is the second: `DecorantSettings` (biome level) holds `Decorator`s in `art.arcane.iris.builtin.decorant`, +written `"iris:decorant": {"decorators": [...]}` (the old `"decorators": [...]` is converted by the migration script). +`ResolvedDecorator` resolves one decorator's blocks and noise for a world; `BiomeDecorators`, the world's state, keeps them +per biome and place. Other modules that decorate (`iris:cave`'s ceilings, floating islands) ask it. A decorator's noise +seed is the world's decorator seed, its biome's key and its place in the biome's list. The module's `warmUp` builds +them ahead of generation; `iris:terrain` and `iris:objects` warm their ore generators, placements and procedural +objects the same way. + Every built-in stage is a full port: the module owns its logic and per-engine state, and the mantle stages work out their reach from the pack when it loads. A dimension's `disabledComponents` turns a mantle stage off by its flag (`CARVED`, `OBJECT`, `FLOATING_OBJECT`, `JIGSAW`) or by its stage id. diff --git a/src/main/java/art/arcane/iris/engine/decorator/ResolvedDecorator.java b/src/main/java/art/arcane/iris/engine/decorator/ResolvedDecorator.java index b6c529176..8f9296005 100644 --- a/src/main/java/art/arcane/iris/engine/decorator/ResolvedDecorator.java +++ b/src/main/java/art/arcane/iris/engine/decorator/ResolvedDecorator.java @@ -114,6 +114,11 @@ final class ResolvedDecorator { return settings; } + /** The seed the decorator's noise is built from. */ + long seed() { + return seed; + } + DecorationPart part() { return settings.partOf(); }