mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-10-22 08:07:51 +00:00
use search range for binary column in pattern locator
This commit is contained in:
1 parent
bde7760634
commit
9c024df9e5
2 files changed
+7
-1
No files matched your search
@@ -7,6 +7,8 @@
|
||||
|
||||
package com.dfsek.terra.api.structure.feature;
|
||||
|
||||
import com.dfsek.terra.api.util.Range;
|
||||
|
||||
import java.util.function.IntConsumer;
|
||||
|
||||
|
||||
@@ -28,6 +30,10 @@ public class BinaryColumn {
|
||||
this.data = new boolean[maxY - minY];
|
||||
}
|
||||
|
||||
public BinaryColumn(Range y) {
|
||||
this(y.getMin(), y.getMax());
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the value of a height to {@code true}.
|
||||
* @param y Height of entry to set.
|
||||
|
||||
Reference in new issue
Block a user