mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-06-19 07:11:14 +00:00
more Distributor API
This commit is contained in:
@@ -10,4 +10,12 @@ public interface Distributor {
|
|||||||
default Distributor or(Distributor other) {
|
default Distributor or(Distributor other) {
|
||||||
return (x, z, seed) -> this.matches(x, z, seed) || other.matches(x, z, seed);
|
return (x, z, seed) -> this.matches(x, z, seed) || other.matches(x, z, seed);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static Distributor yes() {
|
||||||
|
return (x, z, seed) -> true;
|
||||||
|
}
|
||||||
|
|
||||||
|
static Distributor no() {
|
||||||
|
return (x, z, seed) -> false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user