more Distributor API

This commit is contained in:
dfsek committed 2021-09-24 22:14:17 -07:00
1 parent 6a1ac49e54
commit cc55588967
1 file changed
+8
@@ -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;
}
}