mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-29 09:15:27 +00:00
Remove Mantle.isCarved, carved().get(x, y, z) != null asks the same
The mantle had two ways to ask whether a position holds a carved void. The layer is the one way now.
This commit is contained in:
1 parent
307b89c5fe
commit
0691753d21
8 files changed
+7
-24
No files matched your search
@@ -38,15 +38,12 @@ public interface Mantle {
|
||||
* Mantle stages write it ({@code set} plans a void, {@code remove} takes it back); a chunk stage only reads it, around
|
||||
* its chunk as far as its mantle reaches, and its writes throw UnsupportedOperationException. A chunk stage takes the
|
||||
* voids over into its chunk (Iris's {@code iris:carve} cuts them out of the terrain). The host owns this layer and keeps
|
||||
* it in its own form, so it needs no registration. A dimension that keeps no mantle carves nothing.
|
||||
* it in its own form, so it needs no registration. A dimension that keeps no mantle carves nothing. A stage that only
|
||||
* asks whether a position is carved, whether or not the chunk's own blocks show it, such as under a dimension stacked
|
||||
* above, tests {@code carved().get(x, y, z) != null}.
|
||||
*/
|
||||
MantleLayer<CarvedVoid> carved();
|
||||
|
||||
/** Whether the mantle holds a carved void at the position, whether or not the chunk's own blocks show it, such as
|
||||
* under a dimension stacked above: the same as {@code carved().get(x, y, z) != null}, for a stage that only asks.
|
||||
*/
|
||||
boolean isCarved(int x, int y, int z);
|
||||
|
||||
/** Shows the block as platform biome {@code biome}, such as {@code minecraft:plains} or a pack's custom biome, instead
|
||||
* of the biome its column generates as; the host's biome pass reads it when it writes the chunk's biomes. The host
|
||||
* owns this layer and keeps it in its own form, so it is written only and needs no registration. A chunk stage
|
||||
|
||||
Reference in new issue
Block a user