diff --git a/common/api/src/main/java/com/dfsek/terra/api/structure/feature/Distributor.java b/common/api/src/main/java/com/dfsek/terra/api/structure/feature/Distributor.java index 04e783bf0..be8b9cf11 100644 --- a/common/api/src/main/java/com/dfsek/terra/api/structure/feature/Distributor.java +++ b/common/api/src/main/java/com/dfsek/terra/api/structure/feature/Distributor.java @@ -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); + } }