mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-04-15 14:39:40 +00:00
more Distributor API
This commit is contained in:
@@ -10,4 +10,12 @@ public interface Distributor {
|
||||
default Distributor or(Distributor other) {
|
||||
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