Surface for ported built-ins: VINE trait, canPlaceOn, the sampler's fluid height and upper dimension, the mantle's planned blocks, a chunk sampler that covers the neighbors, stage timings from the chunk runner

This commit is contained in:
piexel committed 2026-10-10 08:35:10 +02:00
1 parent f8d85dcd5e
commit 6c0c072afe
11 files changed
+139 -5

No files matched your search

@@ -1,5 +1,7 @@
package com.volmit.mantle;
import com.volmit.block.BlockState;
/**
* Invocation-scoped access to typed mantle data. X and Z are world block coordinates; Y is
* the height above the dimension's bottom (0 = bottom), so it is never negative. The host translates
@@ -22,6 +24,14 @@ public interface Mantle {
<T> MantleLayer<T> layer(MantleKey<T> key);
/** The blocks the mantle holds for chunks to take over: what placements wrote, such as objects and structures.
* A chunk stage copies them into its chunk (Iris's {@code iris:matter}); absent positions read null, and air a
* placement wrote is a block like any other. The host owns this layer, so it needs no registration. Stages read
* it only, and writes throw UnsupportedOperationException: placements write blocks with
* {@link com.volmit.placement.PlacementAccess#set}. A dimension that keeps no mantle holds none.
*/
MantleLayer<BlockState> blocks();
/** Only one edit may be active per view. Parent reads remain allowed, but parent
* mutations are prohibited until the edit ends (IllegalStateException).
*/