mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-02-16 10:30:42 +00:00
add Distributor#xor
This commit is contained in:
@@ -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