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:
piexel committed 2026-10-08 12:44:43 +02:00
1 parent a77a097baf
commit 847dba8212
12 files changed
+349 -133

No files matched your search

@@ -19,10 +19,13 @@
package art.arcane.iris.builtin.floating;
import com.volmit.stage.ChunkStage;
import com.volmit.stage.MantleStage;
import com.volmit.stage.Stage;
/** Module {@code iris:floating}: the floating islands of floating child biomes. */
public final class FloatingStages {
/** Places the objects on and under the islands into the mantle, after the dimension's other objects. */
public static final MantleStage<Void> OBJECTS = Stage.mantle("iris:floating/objects");
/** Writes the islands' solid blocks. */
public static final ChunkStage<Void> SOLIDS = Stage.chunk("iris:floating/solids");
/** Decorates the islands' tops and bottoms once the chunk's own decoration is done. */
@@ -0,0 +1,31 @@
/*
* Iris is a World Generator for Minecraft Servers
* Copyright (c) 2026 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package art.arcane.iris.builtin.objects;
import com.volmit.stage.MantleStage;
import com.volmit.stage.Stage;
/** Module {@code iris:objects}: the objects the dimension's regions and biomes place. */
public final class ObjectStages {
/** Places surface, cave and upper-dimension objects into the mantle, after the caves they anchor in. */
public static final MantleStage<Void> PLACE = Stage.mantle("iris:objects/place");
private ObjectStages() {
}
}
@@ -0,0 +1,31 @@
/*
* Iris is a World Generator for Minecraft Servers
* Copyright (c) 2026 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package art.arcane.iris.builtin.structure;
import com.volmit.stage.MantleStage;
import com.volmit.stage.Stage;
/** Module {@code iris:structure}: Iris structures, assembled from pieces. */
public final class StructureStages {
/** Places the structures of the dimension, its regions and biomes into the mantle, after objects and floating objects. */
public static final MantleStage<Void> PLACE = Stage.mantle("iris:structure/place");
private StructureStages() {
}
}