cleanup generic type

This commit is contained in:
dfsek
2021-11-28 16:52:59 -07:00
parent 397c464fb2
commit b4408f048c
2 changed files with 2 additions and 2 deletions

View File

@@ -24,7 +24,7 @@ public class MatchPattern implements Pattern {
}
@Override
public boolean matches(int y, Column column) {
public boolean matches(int y, Column<?> column) {
for(int i : range) {
if(!matches.test(column.getBlock(y + i))) return false;
}

View File

@@ -11,7 +11,7 @@ import com.dfsek.terra.api.world.chunk.generation.util.Column;
public interface Pattern {
boolean matches(int y, Column column);
boolean matches(int y, Column<?> column);
default Pattern and(Pattern that) {
return (y, column) -> this.matches(y, column) && that.matches(y, column);