mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-28 16:54:04 +00:00
Gather built-in stage constants in one IrisStages catalogue
The 20 per-module *Stages holders become nested classes of art.arcane.iris.builtin.IrisStages, listed in pipeline order, so one file shows every built-in stage. Settings and output types stay in their per-module subpackages.
This commit is contained in:
1 parent
7a9ea0ca5a
commit
f71346d235
42 files changed
+344
-785
No files matched your search
@@ -0,0 +1,242 @@
|
||||
/*
|
||||
* 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;
|
||||
|
||||
import art.arcane.iris.builtin.anchor.AnchorHeight;
|
||||
import art.arcane.iris.builtin.blocks.WrittenBlocks;
|
||||
import art.arcane.iris.builtin.stilt.StiltLayers;
|
||||
import art.arcane.iris.engine.object.placement.IrisObjectPlacement;
|
||||
import art.arcane.iris.engine.object.placement.PreparedPlacement;
|
||||
import com.volmit.stage.BlockStage;
|
||||
import com.volmit.stage.ChunkStage;
|
||||
import com.volmit.stage.MantleStage;
|
||||
import com.volmit.stage.PlacementStage;
|
||||
import com.volmit.stage.Stage;
|
||||
|
||||
/**
|
||||
* Every stage of Iris's built-in modules, one nested class per module. Modules are listed in the order their
|
||||
* pipelines run them: placement, then mantle, then chunk; a module with stages in several pipelines is listed
|
||||
* where its first stage runs. The stage graph decides the actual order.
|
||||
*/
|
||||
public final class IrisStages {
|
||||
private IrisStages() {
|
||||
}
|
||||
|
||||
/** Module {@code iris:prepare}: what a placement decides before it looks for its height. */
|
||||
public static final class Prepare {
|
||||
/** The settings the placement uses: the requested ones, turned downhill when they ask to face the slope. Rejects {@code slope}. */
|
||||
public static final PlacementStage<IrisObjectPlacement> SLOPE = Stage.placement("iris:prepare/slope", IrisObjectPlacement.class);
|
||||
/** The random rotation, translation and height offset, chosen once per placement. */
|
||||
public static final PlacementStage<PreparedPlacement> TRANSFORMS = Stage.placement("iris:prepare/transforms", PreparedPlacement.class);
|
||||
|
||||
private Prepare() {
|
||||
}
|
||||
}
|
||||
|
||||
/** Module {@code iris:anchor}: the height an object is placed at. */
|
||||
public static final class Anchor {
|
||||
/** The requested or sampled height the checks judge. Rejects {@code carving-anchor}. */
|
||||
public static final PlacementStage<AnchorHeight> HEIGHT = Stage.placement("iris:anchor/height", AnchorHeight.class);
|
||||
/** The height the object's blocks are written at: the checked height plus the random offset. */
|
||||
public static final PlacementStage<AnchorHeight> FINAL = Stage.placement("iris:anchor/final", AnchorHeight.class);
|
||||
|
||||
private Anchor() {
|
||||
}
|
||||
}
|
||||
|
||||
/** Module {@code iris:validate}: the checks that reject a placement before anything is written, in this order. */
|
||||
public static final class Validate {
|
||||
/** Rejects {@code bedrock-anchor} and {@code surface-support}. */
|
||||
public static final PlacementStage<Void> SURFACE = Stage.placement("iris:validate/surface");
|
||||
/** Rejects {@code underwater-anchor}, {@code cave-clearance}, {@code fluid-height} and {@code height-clamp}. */
|
||||
public static final PlacementStage<Void> LIMITS = Stage.placement("iris:validate/limits");
|
||||
/** Rejects {@code native-structure}, even for placements that force their way past the other checks. */
|
||||
public static final PlacementStage<Void> STRUCTURES = Stage.placement("iris:validate/structures");
|
||||
/** Rejects {@code object-collision}. */
|
||||
public static final PlacementStage<Void> COLLISIONS = Stage.placement("iris:validate/collisions");
|
||||
|
||||
private Validate() {
|
||||
}
|
||||
}
|
||||
|
||||
/** Module {@code iris:bore}: clearing the object's volume before its blocks are written. */
|
||||
public static final class Bore {
|
||||
public static final PlacementStage<Void> CLEAR = Stage.placement("iris:bore/clear");
|
||||
|
||||
private Bore() {
|
||||
}
|
||||
}
|
||||
|
||||
/** Module {@code iris:blocks}: writing the object's blocks. */
|
||||
public static final class Blocks {
|
||||
/** Writes each object block where the placement puts it. */
|
||||
public static final BlockStage<WrittenBlocks> WRITE = Stage.placementBlock("iris:blocks/write", WrittenBlocks.class);
|
||||
/** Marks some written blocks with the placement's markers. */
|
||||
public static final PlacementStage<Void> MARKERS = Stage.placement("iris:blocks/markers");
|
||||
/** Milestone: stages requiring it run after the object and its markers are written. */
|
||||
public static final PlacementStage<Void> COMPLETE = Stage.placement("iris:blocks/complete");
|
||||
|
||||
private Blocks() {
|
||||
}
|
||||
}
|
||||
|
||||
/** Module {@code iris:stilt}: the stilts of the stilt and ceiling placement modes. */
|
||||
public static final class Stilt {
|
||||
/** Finds the layers to repeat. */
|
||||
public static final BlockStage<StiltLayers> LAYERS = Stage.placementBlock("iris:stilt/layers", StiltLayers.class);
|
||||
/** Grows the stilt once the object is written. */
|
||||
public static final PlacementStage<Void> FILL = Stage.placement("iris:stilt/fill");
|
||||
|
||||
private Stilt() {
|
||||
}
|
||||
}
|
||||
|
||||
/** Module {@code iris:vacuum}: bending the terrain to meet objects of the vacuum placement modes. */
|
||||
public static final class Vacuum {
|
||||
public static final PlacementStage<Void> TERRAIN = Stage.placement("iris:vacuum/terrain");
|
||||
|
||||
private Vacuum() {
|
||||
}
|
||||
}
|
||||
|
||||
/** Module {@code iris:snow}: snow on the object, after its stilt or terrain bend. */
|
||||
public static final class Snow {
|
||||
public static final PlacementStage<Void> COVER = Stage.placement("iris:snow/cover");
|
||||
|
||||
private Snow() {
|
||||
}
|
||||
}
|
||||
|
||||
/** Module {@code iris:carve}: caves, planned in the mantle and cut into each chunk's terrain. */
|
||||
public static final class Carve {
|
||||
/** Plans the caves of the dimension's cave profiles into the mantle, one block into each neighbor. */
|
||||
public static final MantleStage<Void> CAVES = Stage.mantle("iris:carve/caves");
|
||||
/** Cuts the planned caves out of the chunk's terrain and decorates their floors and ceilings. */
|
||||
public static final ChunkStage<Void> APPLY = Stage.chunk("iris:carve/apply");
|
||||
|
||||
private Carve() {
|
||||
}
|
||||
}
|
||||
|
||||
/** Module {@code iris:objects}: the objects the dimension's regions and biomes place. */
|
||||
public static final class Objects {
|
||||
/** 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 Objects() {
|
||||
}
|
||||
}
|
||||
|
||||
/** Module {@code iris:floating}: the floating islands of floating child biomes. */
|
||||
public static final class Floating {
|
||||
/** 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. */
|
||||
public static final ChunkStage<Void> DECORATE = Stage.chunk("iris:floating/decorate");
|
||||
|
||||
private Floating() {
|
||||
}
|
||||
}
|
||||
|
||||
/** Module {@code iris:structure}: Iris structures, assembled from pieces. */
|
||||
public static final class Structure {
|
||||
/** 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 Structure() {
|
||||
}
|
||||
}
|
||||
|
||||
/** Module {@code iris:biome}: the biomes a chunk reports to the server. */
|
||||
public static final class Biome {
|
||||
/** Writes every column's biome, sky biome or custom biome, into the chunk. */
|
||||
public static final ChunkStage<Void> WRITE = Stage.chunk("iris:biome/write");
|
||||
|
||||
private Biome() {
|
||||
}
|
||||
}
|
||||
|
||||
/** Module {@code iris:terrain}: the solid ground, fluids and biome layers of a chunk. */
|
||||
public static final class Terrain {
|
||||
/** Fills each column from bedrock up to its height and the fluid height, with its biome's layers. */
|
||||
public static final ChunkStage<Void> SHAPE = Stage.chunk("iris:terrain/shape");
|
||||
|
||||
private Terrain() {
|
||||
}
|
||||
}
|
||||
|
||||
/** Module {@code iris:post}: smoothing a chunk's surface after carving. */
|
||||
public static final class Post {
|
||||
/** Fills single-block holes, places slabs and walls on steps and settles snow. */
|
||||
public static final ChunkStage<Void> SMOOTH = Stage.chunk("iris:post/smooth");
|
||||
|
||||
private Post() {
|
||||
}
|
||||
}
|
||||
|
||||
/** Module {@code iris:deposit}: ores and other deposits. */
|
||||
public static final class Deposit {
|
||||
/**
|
||||
* Places the deposits every level declares at the chunk's centre column, the dimension's, the region's and
|
||||
* the biome's, each with its own clumps. Active where any column of the chunk has deposits.
|
||||
*/
|
||||
public static final ChunkStage<Void> ORES = Stage.chunk("iris:deposit/ores");
|
||||
|
||||
private Deposit() {
|
||||
}
|
||||
}
|
||||
|
||||
/** Module {@code iris:matter}: the blocks the mantle planned for a chunk, such as objects and structures. */
|
||||
public static final class Matter {
|
||||
/** Copies the chunk's planned mantle blocks into it. */
|
||||
public static final ChunkStage<Void> INSERT = Stage.chunk("iris:matter/insert");
|
||||
|
||||
private Matter() {
|
||||
}
|
||||
}
|
||||
|
||||
/** Module {@code iris:decorant}: the decorators of biomes, such as grass, flowers and cave ceilings. */
|
||||
public static final class Decorant {
|
||||
/** Places every column's surface, sea, shore and cave decorators. */
|
||||
public static final ChunkStage<Void> DECORATE = Stage.chunk("iris:decorant/decorate");
|
||||
|
||||
private Decorant() {
|
||||
}
|
||||
}
|
||||
|
||||
/** Module {@code iris:perfection}: the last touches on an overworld chunk's blocks. */
|
||||
public static final class Perfection {
|
||||
/** Hides ores when the dimension asks, then removes decorations that nothing holds up. */
|
||||
public static final ChunkStage<Void> SURFACE = Stage.chunk("iris:perfection/surface");
|
||||
|
||||
private Perfection() {
|
||||
}
|
||||
}
|
||||
|
||||
/** Module {@code iris:custom}: blocks of content plugins, which the server places after generation. */
|
||||
public static final class Custom {
|
||||
/** Records the chunk's custom blocks so the server can place them once the chunk exists. */
|
||||
public static final ChunkStage<Void> BLOCKS = Stage.chunk("iris:custom/blocks");
|
||||
|
||||
private Custom() {
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,33 +0,0 @@
|
||||
/*
|
||||
* 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.anchor;
|
||||
|
||||
import com.volmit.stage.PlacementStage;
|
||||
import com.volmit.stage.Stage;
|
||||
|
||||
/** Module {@code iris:anchor}: the height an object is placed at. */
|
||||
public final class AnchorStages {
|
||||
/** The requested or sampled height the checks judge. Rejects {@code carving-anchor}. */
|
||||
public static final PlacementStage<AnchorHeight> HEIGHT = Stage.placement("iris:anchor/height", AnchorHeight.class);
|
||||
/** The height the object's blocks are written at: the checked height plus the random offset. */
|
||||
public static final PlacementStage<AnchorHeight> FINAL = Stage.placement("iris:anchor/final", AnchorHeight.class);
|
||||
|
||||
private AnchorStages() {
|
||||
}
|
||||
}
|
||||
@@ -1,31 +0,0 @@
|
||||
/*
|
||||
* 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.biome;
|
||||
|
||||
import com.volmit.stage.ChunkStage;
|
||||
import com.volmit.stage.Stage;
|
||||
|
||||
/** Module {@code iris:biome}: the biomes a chunk reports to the server. */
|
||||
public final class BiomeStages {
|
||||
/** Writes every column's biome, sky biome or custom biome, into the chunk. */
|
||||
public static final ChunkStage<Void> WRITE = Stage.chunk("iris:biome/write");
|
||||
|
||||
private BiomeStages() {
|
||||
}
|
||||
}
|
||||
@@ -1,36 +0,0 @@
|
||||
/*
|
||||
* 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.blocks;
|
||||
|
||||
import com.volmit.stage.BlockStage;
|
||||
import com.volmit.stage.PlacementStage;
|
||||
import com.volmit.stage.Stage;
|
||||
|
||||
/** Module {@code iris:blocks}: writing the object's blocks. */
|
||||
public final class BlocksStages {
|
||||
/** Writes each object block where the placement puts it. */
|
||||
public static final BlockStage<WrittenBlocks> WRITE = Stage.placementBlock("iris:blocks/write", WrittenBlocks.class);
|
||||
/** Marks some written blocks with the placement's markers. */
|
||||
public static final PlacementStage<Void> MARKERS = Stage.placement("iris:blocks/markers");
|
||||
/** Milestone: stages requiring it run after the object and its markers are written. */
|
||||
public static final PlacementStage<Void> COMPLETE = Stage.placement("iris:blocks/complete");
|
||||
|
||||
private BlocksStages() {
|
||||
}
|
||||
}
|
||||
@@ -1,30 +0,0 @@
|
||||
/*
|
||||
* 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.bore;
|
||||
|
||||
import com.volmit.stage.PlacementStage;
|
||||
import com.volmit.stage.Stage;
|
||||
|
||||
/** Module {@code iris:bore}: clearing the object's volume before its blocks are written. */
|
||||
public final class BoreStages {
|
||||
public static final PlacementStage<Void> CLEAR = Stage.placement("iris:bore/clear");
|
||||
|
||||
private BoreStages() {
|
||||
}
|
||||
}
|
||||
@@ -1,34 +0,0 @@
|
||||
/*
|
||||
* 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.carve;
|
||||
|
||||
import com.volmit.stage.ChunkStage;
|
||||
import com.volmit.stage.MantleStage;
|
||||
import com.volmit.stage.Stage;
|
||||
|
||||
/** Module {@code iris:carve}: caves, planned in the mantle and cut into each chunk's terrain. */
|
||||
public final class CarveStages {
|
||||
/** Plans the caves of the dimension's cave profiles into the mantle, one block into each neighbor. */
|
||||
public static final MantleStage<Void> CAVES = Stage.mantle("iris:carve/caves");
|
||||
/** Cuts the planned caves out of the chunk's terrain and decorates their floors and ceilings. */
|
||||
public static final ChunkStage<Void> APPLY = Stage.chunk("iris:carve/apply");
|
||||
|
||||
private CarveStages() {
|
||||
}
|
||||
}
|
||||
@@ -1,31 +0,0 @@
|
||||
/*
|
||||
* 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.custom;
|
||||
|
||||
import com.volmit.stage.ChunkStage;
|
||||
import com.volmit.stage.Stage;
|
||||
|
||||
/** Module {@code iris:custom}: blocks of content plugins, which the server places after generation. */
|
||||
public final class CustomStages {
|
||||
/** Records the chunk's custom blocks so the server can place them once the chunk exists. */
|
||||
public static final ChunkStage<Void> BLOCKS = Stage.chunk("iris:custom/blocks");
|
||||
|
||||
private CustomStages() {
|
||||
}
|
||||
}
|
||||
@@ -1,31 +0,0 @@
|
||||
/*
|
||||
* 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.decorant;
|
||||
|
||||
import com.volmit.stage.ChunkStage;
|
||||
import com.volmit.stage.Stage;
|
||||
|
||||
/** Module {@code iris:decorant}: the decorators of biomes, such as grass, flowers and cave ceilings. */
|
||||
public final class DecorantStages {
|
||||
/** Places every column's surface, sea, shore and cave decorators. */
|
||||
public static final ChunkStage<Void> DECORATE = Stage.chunk("iris:decorant/decorate");
|
||||
|
||||
private DecorantStages() {
|
||||
}
|
||||
}
|
||||
@@ -1,34 +0,0 @@
|
||||
/*
|
||||
* 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.deposit;
|
||||
|
||||
import com.volmit.stage.ChunkStage;
|
||||
import com.volmit.stage.Stage;
|
||||
|
||||
/** Module {@code iris:deposit}: ores and other deposits. */
|
||||
public final class DepositStages {
|
||||
/**
|
||||
* Places the deposits every level declares at the chunk's centre column, the dimension's, the region's and
|
||||
* the biome's, each with its own clumps. Active where any column of the chunk has deposits.
|
||||
*/
|
||||
public static final ChunkStage<Void> ORES = Stage.chunk("iris:deposit/ores");
|
||||
|
||||
private DepositStages() {
|
||||
}
|
||||
}
|
||||
@@ -1,36 +0,0 @@
|
||||
/*
|
||||
* 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.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. */
|
||||
public static final ChunkStage<Void> DECORATE = Stage.chunk("iris:floating/decorate");
|
||||
|
||||
private FloatingStages() {
|
||||
}
|
||||
}
|
||||
@@ -1,31 +0,0 @@
|
||||
/*
|
||||
* 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.matter;
|
||||
|
||||
import com.volmit.stage.ChunkStage;
|
||||
import com.volmit.stage.Stage;
|
||||
|
||||
/** Module {@code iris:matter}: the blocks the mantle planned for a chunk, such as objects and structures. */
|
||||
public final class MatterStages {
|
||||
/** Copies the chunk's planned mantle blocks into it. */
|
||||
public static final ChunkStage<Void> INSERT = Stage.chunk("iris:matter/insert");
|
||||
|
||||
private MatterStages() {
|
||||
}
|
||||
}
|
||||
@@ -1,31 +0,0 @@
|
||||
/*
|
||||
* 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() {
|
||||
}
|
||||
}
|
||||
@@ -17,15 +17,15 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* The public face of Iris's built-in modules: their stage constants and the settings and output types
|
||||
* of those stages. {@link art.arcane.iris.core.modules.IrisModuleHost} exposes this package, with its
|
||||
* The public face of Iris's built-in modules: every stage constant, in {@link art.arcane.iris.builtin.IrisStages},
|
||||
* and the settings and output types of those stages. {@link art.arcane.iris.core.modules.IrisModuleHost} exposes this package, with its
|
||||
* subpackages, to pack modules, so a pack jar can {@code requires(...)} a built-in stage and read its
|
||||
* output. Everything here is part of what packs compile against.
|
||||
* <p>
|
||||
* Keep implementation out of it: stage bodies and anything that uses Iris internals live in the
|
||||
* built-in module classes outside this package, which packs cannot see. One subpackage per built-in
|
||||
* module, named after the module path, such as {@code art.arcane.iris.builtin.deposit} for
|
||||
* {@code iris:deposit}.
|
||||
* built-in module classes outside this package, which packs cannot see. Settings and output types go in one
|
||||
* subpackage per built-in module, named after the module path, such as {@code art.arcane.iris.builtin.deposit}
|
||||
* for {@code iris:deposit}.
|
||||
* <p>
|
||||
* 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
|
||||
|
||||
@@ -1,31 +0,0 @@
|
||||
/*
|
||||
* 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.perfection;
|
||||
|
||||
import com.volmit.stage.ChunkStage;
|
||||
import com.volmit.stage.Stage;
|
||||
|
||||
/** Module {@code iris:perfection}: the last touches on an overworld chunk's blocks. */
|
||||
public final class PerfectionStages {
|
||||
/** Hides ores when the dimension asks, then removes decorations that nothing holds up. */
|
||||
public static final ChunkStage<Void> SURFACE = Stage.chunk("iris:perfection/surface");
|
||||
|
||||
private PerfectionStages() {
|
||||
}
|
||||
}
|
||||
@@ -1,31 +0,0 @@
|
||||
/*
|
||||
* 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.post;
|
||||
|
||||
import com.volmit.stage.ChunkStage;
|
||||
import com.volmit.stage.Stage;
|
||||
|
||||
/** Module {@code iris:post}: smoothing a chunk's surface after carving. */
|
||||
public final class PostStages {
|
||||
/** Fills single-block holes, places slabs and walls on steps and settles snow. */
|
||||
public static final ChunkStage<Void> SMOOTH = Stage.chunk("iris:post/smooth");
|
||||
|
||||
private PostStages() {
|
||||
}
|
||||
}
|
||||
@@ -1,35 +0,0 @@
|
||||
/*
|
||||
* 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.prepare;
|
||||
|
||||
import art.arcane.iris.engine.object.placement.IrisObjectPlacement;
|
||||
import art.arcane.iris.engine.object.placement.PreparedPlacement;
|
||||
import com.volmit.stage.PlacementStage;
|
||||
import com.volmit.stage.Stage;
|
||||
|
||||
/** Module {@code iris:prepare}: what a placement decides before it looks for its height. */
|
||||
public final class PrepareStages {
|
||||
/** The settings the placement uses: the requested ones, turned downhill when they ask to face the slope. Rejects {@code slope}. */
|
||||
public static final PlacementStage<IrisObjectPlacement> SLOPE = Stage.placement("iris:prepare/slope", IrisObjectPlacement.class);
|
||||
/** The random rotation, translation and height offset, chosen once per placement. */
|
||||
public static final PlacementStage<PreparedPlacement> TRANSFORMS = Stage.placement("iris:prepare/transforms", PreparedPlacement.class);
|
||||
|
||||
private PrepareStages() {
|
||||
}
|
||||
}
|
||||
@@ -1,30 +0,0 @@
|
||||
/*
|
||||
* 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.snow;
|
||||
|
||||
import com.volmit.stage.PlacementStage;
|
||||
import com.volmit.stage.Stage;
|
||||
|
||||
/** Module {@code iris:snow}: snow on the object, after its stilt or terrain bend. */
|
||||
public final class SnowStages {
|
||||
public static final PlacementStage<Void> COVER = Stage.placement("iris:snow/cover");
|
||||
|
||||
private SnowStages() {
|
||||
}
|
||||
}
|
||||
@@ -1,34 +0,0 @@
|
||||
/*
|
||||
* 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.stilt;
|
||||
|
||||
import com.volmit.stage.BlockStage;
|
||||
import com.volmit.stage.PlacementStage;
|
||||
import com.volmit.stage.Stage;
|
||||
|
||||
/** Module {@code iris:stilt}: the stilts of the stilt and ceiling placement modes. */
|
||||
public final class StiltStages {
|
||||
/** Finds the layers to repeat. */
|
||||
public static final BlockStage<StiltLayers> LAYERS = Stage.placementBlock("iris:stilt/layers", StiltLayers.class);
|
||||
/** Grows the stilt once the object is written. */
|
||||
public static final PlacementStage<Void> FILL = Stage.placement("iris:stilt/fill");
|
||||
|
||||
private StiltStages() {
|
||||
}
|
||||
}
|
||||
@@ -1,31 +0,0 @@
|
||||
/*
|
||||
* 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() {
|
||||
}
|
||||
}
|
||||
@@ -1,31 +0,0 @@
|
||||
/*
|
||||
* 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.terrain;
|
||||
|
||||
import com.volmit.stage.ChunkStage;
|
||||
import com.volmit.stage.Stage;
|
||||
|
||||
/** Module {@code iris:terrain}: the solid ground, fluids and biome layers of a chunk. */
|
||||
public final class TerrainStages {
|
||||
/** Fills each column from bedrock up to its height and the fluid height, with its biome's layers. */
|
||||
public static final ChunkStage<Void> SHAPE = Stage.chunk("iris:terrain/shape");
|
||||
|
||||
private TerrainStages() {
|
||||
}
|
||||
}
|
||||
@@ -1,30 +0,0 @@
|
||||
/*
|
||||
* 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.vacuum;
|
||||
|
||||
import com.volmit.stage.PlacementStage;
|
||||
import com.volmit.stage.Stage;
|
||||
|
||||
/** Module {@code iris:vacuum}: bending the terrain to meet objects of the vacuum placement modes. */
|
||||
public final class VacuumStages {
|
||||
public static final PlacementStage<Void> TERRAIN = Stage.placement("iris:vacuum/terrain");
|
||||
|
||||
private VacuumStages() {
|
||||
}
|
||||
}
|
||||
@@ -1,37 +0,0 @@
|
||||
/*
|
||||
* 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.validate;
|
||||
|
||||
import com.volmit.stage.PlacementStage;
|
||||
import com.volmit.stage.Stage;
|
||||
|
||||
/** Module {@code iris:validate}: the checks that reject a placement before anything is written, in this order. */
|
||||
public final class ValidateStages {
|
||||
/** Rejects {@code bedrock-anchor} and {@code surface-support}. */
|
||||
public static final PlacementStage<Void> SURFACE = Stage.placement("iris:validate/surface");
|
||||
/** Rejects {@code underwater-anchor}, {@code cave-clearance}, {@code fluid-height} and {@code height-clamp}. */
|
||||
public static final PlacementStage<Void> LIMITS = Stage.placement("iris:validate/limits");
|
||||
/** Rejects {@code native-structure}, even for placements that force their way past the other checks. */
|
||||
public static final PlacementStage<Void> STRUCTURES = Stage.placement("iris:validate/structures");
|
||||
/** Rejects {@code object-collision}. */
|
||||
public static final PlacementStage<Void> COLLISIONS = Stage.placement("iris:validate/collisions");
|
||||
|
||||
private ValidateStages() {
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user