more Distributor API

This commit is contained in:
dfsek
2021-09-24 22:13:54 -07:00
parent 6a1ac49e54
commit cc55588967

View File

@@ -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;
}
}