mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-02-16 02:20:57 +00:00
Distributor api
This commit is contained in:
@@ -1,4 +1,13 @@
|
||||
package com.dfsek.terra.api.structure.feature;
|
||||
|
||||
public interface Distributor {
|
||||
boolean matches(int x, int z);
|
||||
|
||||
default Distributor and(Distributor other) {
|
||||
return (x, z) -> this.matches(x, z) && other.matches(x, z);
|
||||
}
|
||||
|
||||
default Distributor or(Distributor other) {
|
||||
return (x, z) -> this.matches(x, z) || other.matches(x, z);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user