mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-27 16:25:36 +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
|
||||
* 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;"
|
||||
+ " 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;
|
||||
}
|
||||
|
||||
/** 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
|
||||
public BlockBox bounds() {
|
||||
return mantle.bounds();
|
||||
|
||||
Reference in new issue
Block a user