mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-10-20 15:27:24 +00:00
add Distributor#xor
This commit is contained in:
1 parent
5881e4465f
commit
2b3cee6b7c
1 file changed
+4
@@ -25,4 +25,8 @@ public interface Distributor {
|
||||
default Distributor or(Distributor other) {
|
||||
return (x, z, seed) -> this.matches(x, z, seed) || other.matches(x, z, seed);
|
||||
}
|
||||
|
||||
default Distributor xor(Distributor other) {
|
||||
return (x, z, seed) -> this.matches(x, z, seed) ^ other.matches(x, z, seed);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user