mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-06-17 14:21:08 +00:00
cleanup generic type
This commit is contained in:
+1
-1
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user