mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-12-01 18:24:06 +00:00
Port Iris's object, floating object and structure mantle components to built-in mantle stages
The three mantle components become per-runtime workers constructed from the engine, like CaveCarving: ObjectPlacing, FloatingObjectPlacing and StructurePlacing, each with place(writer, x, z, context) and reach(). New built-in mantle stages run them: iris:objects/place (after the caves), iris:floating/objects (after objects) and iris:structure/place (after objects and floating objects). Each works out its reach from the pack when it loads, as the component's radius used to be. CarveModule no longer checks disabledComponents itself: Iris disables the cave stage's pass by its CARVED flag like any other. Studio's disabledComponents list offers the flags of Iris's own mantle stages, CARVED included again.
This commit is contained in:
1 parent
a77a097baf
commit
847dba8212
12 files changed
+349
-133
No files matched your search
@@ -6,18 +6,20 @@ direct dependencies on Iris internals.
|
||||
|
||||
Ported features are IrisApi modules that every pack loads before its own: object placement
|
||||
(`iris:prepare`, `iris:anchor`, `iris:validate`, `iris:bore`, `iris:blocks`, `iris:stilt`,
|
||||
`iris:vacuum`, `iris:snow`) and chunk generation, which every world runs in this order: `iris:biome`,
|
||||
`iris:terrain`, `iris:carve` (a mantle stage planning caves, and a chunk stage cutting them),
|
||||
`iris:post`, `iris:floating` (solids), `iris:deposit`, `iris:matter`, `iris:decorant`, `iris:floating`
|
||||
(decoration), `iris:perfection` and `iris:custom`. There are no world modes any more. Their stage
|
||||
constants, and the settings and output types packs may read, live in
|
||||
`src/main/java/art/arcane/iris/builtin`, the package Iris exposes to pack modules; their stage bodies live
|
||||
beside the features they replace.
|
||||
`iris:vacuum`, `iris:snow`), the mantle, and chunk generation. Every mantle stage is a pass of Iris's
|
||||
mantle of its own, in the stage graph's order: `iris:carve/caves`, `iris:objects/place`,
|
||||
`iris:floating/objects`, `iris:structure/place`, so a pack's mantle stage can order itself after any of
|
||||
them. Chunk generation then runs, in this order: `iris:biome`, `iris:terrain`, `iris:carve` (cutting the
|
||||
planned caves), `iris:post`, `iris:floating` (solids), `iris:deposit`, `iris:matter`, `iris:decorant`,
|
||||
`iris:floating` (decoration), `iris:perfection` and `iris:custom`. There are no world modes and no Iris
|
||||
mantle components outside the stage graph any more. Their stage constants, and the settings and output
|
||||
types packs may read, live in `src/main/java/art/arcane/iris/builtin`, the package Iris exposes to pack
|
||||
modules; their stage bodies live beside the features they replace.
|
||||
|
||||
`iris:biome` and `iris:deposit` (chunk stages) and the cave planning of `iris:carve` (a mantle stage) are
|
||||
full ports: the module owns its logic and per-engine state. The other generation stages are thin wrappers
|
||||
that run the existing actuator or modifier unchanged. Iris's object, floating object and structure mantle
|
||||
components are still Iris mantle components.
|
||||
`iris:biome` and `iris:deposit` (chunk stages) and every mantle stage (caves, objects, floating objects,
|
||||
structures) are full ports: the module owns its logic and per-engine state, and the mantle stages work out
|
||||
their reach from the pack when it loads. The other chunk stages are thin wrappers that run the existing
|
||||
actuator or modifier unchanged.
|
||||
|
||||
Iris core and these sources still depend on each other. The Iris host build therefore compiles them
|
||||
together as one source set. This keeps the existing class names and platform artifacts while the
|
||||
|
||||
Reference in new issue
Block a user