Port object placement onto IrisApi modules and delete the lifecycle

- The built-in placement is now eight IrisApi modules: iris:prepare,
  iris:anchor, iris:validate, iris:bore, iris:blocks, iris:stilt,
  iris:vacuum and iris:snow. Their stage constants and output types live
  in art.arcane.iris.builtin, which packs see, the stage bodies beside
  the placement settings they read.
- The modes stay in ObjectPlaceMode, which now names how each mode
  samples its height and which stilt it grows; one graph serves them all.
- The block stages share one pass: the object's blocks are written and
  the stilt layers found together. Snow and the vacuum bend read the
  written blocks from the write stage's output.
- PlacementLifecycle, its builder, plans, stages and state, the
  PlacementModule classes, ObjectBlockPass, IrisObjectPlacementRunner and
  ObjectMarkerPlacement are deleted.
- IrisObject caches its geometry as IrisApi blocks and forgets it with
  its other derived shapes whenever its blocks change.
- IrisObjectPlacement carries the module settings decoded with it.
- The vacuum radius is capped at the 128 blocks its settings allow, the
  reach the vacuum stage declares.
This commit is contained in:
piexel committed 2026-10-08 08:33:42 +02:00
1 parent 72cc04e20f
commit 522a9c85b6
68 files changed
+2464 -1955

No files matched your search

@@ -0,0 +1,35 @@
/*
* 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() {
}
}