cleanup generic type

This commit is contained in:
dfsek committed 2021-11-28 16:52:59 -07:00
1 parent 397c464fb2
commit b4408f048c
2 files changed
+2 -2

No files matched your search

@@ -24,7 +24,7 @@ public class MatchPattern implements Pattern {
} }
@Override @Override
public boolean matches(int y, Column column) { public boolean matches(int y, Column<?> column) {
for(int i : range) { for(int i : range) {
if(!matches.test(column.getBlock(y + i))) return false; if(!matches.test(column.getBlock(y + i))) return false;
} }
@@ -11,7 +11,7 @@ import com.dfsek.terra.api.world.chunk.generation.util.Column;
public interface Pattern { public interface Pattern {
boolean matches(int y, Column column); boolean matches(int y, Column<?> column);
default Pattern and(Pattern that) { default Pattern and(Pattern that) {
return (y, column) -> this.matches(y, column) && that.matches(y, column); return (y, column) -> this.matches(y, column) && that.matches(y, column);