Distributor api

This commit is contained in:
dfsek
2021-07-17 19:34:19 -07:00
parent fc2ce229ed
commit f4f595425a

View File

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