mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-12-02 19:22:08 +00:00
ReadOnlyMantle.host: the host's mantle behind a chunk stage's read-only view, for the host's own extensions
This commit is contained in:
1 parent
9013c6e84b
commit
a1c27c632b
1 file changed
+8
-1
@@ -11,7 +11,7 @@ import com.volmit.mantle.MantleVisitor;
|
|||||||
/** The mantle as chunk stages see it: reads pass through, every write throws. The mantle pipeline has
|
/** The mantle as chunk stages see it: reads pass through, every write throws. The mantle pipeline has
|
||||||
* finished around the chunk by then, and its neighbors may already be generated.
|
* finished around the chunk by then, and its neighbors may already be generated.
|
||||||
*/
|
*/
|
||||||
final class ReadOnlyMantle implements Mantle {
|
public final class ReadOnlyMantle implements Mantle {
|
||||||
private static final String READ_ONLY = "Chunk stages read the mantle but do not write it;"
|
private static final String READ_ONLY = "Chunk stages read the mantle but do not write it;"
|
||||||
+ " write it from a mantle stage (Stage.mantle), which runs before the chunks it reaches";
|
+ " write it from a mantle stage (Stage.mantle), which runs before the chunks it reaches";
|
||||||
|
|
||||||
@@ -21,6 +21,13 @@ final class ReadOnlyMantle implements Mantle {
|
|||||||
this.mantle = mantle;
|
this.mantle = mantle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** The host's mantle behind this view: for a host's own extensions of {@link Mantle}, such as a built-in facade that
|
||||||
|
* reaches the platform's storage. A module that writes through it breaks the promise this view makes to chunk stages.
|
||||||
|
*/
|
||||||
|
public Mantle host() {
|
||||||
|
return mantle;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public BlockBox bounds() {
|
public BlockBox bounds() {
|
||||||
return mantle.bounds();
|
return mantle.bounds();
|
||||||
|
|||||||
Reference in new issue
Block a user