mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-27 16:25:36 +00:00
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:
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).
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user