public final class BitSetVoxelSet extends VoxelSet
VoxelSet.PositionBiConsumer, VoxelSet.PositionConsumer
Modifier and Type | Field and Description |
---|---|
private BitSet |
storage |
private int |
xMax |
private int |
xMin |
private int |
yMax |
private int |
yMin |
private int |
zMax |
private int |
zMin |
Constructor and Description |
---|
BitSetVoxelSet(int xSize,
int ySize,
int zSize) |
BitSetVoxelSet(int xMask,
int yMask,
int zMask,
int xMin,
int yMin,
int zMin,
int xMax,
int yMax,
int zMax) |
BitSetVoxelSet(VoxelSet other) |
Modifier and Type | Method and Description |
---|---|
(package private) static BitSetVoxelSet |
combine(VoxelSet first,
VoxelSet second,
PairList xPoints,
PairList yPoints,
PairList zPoints,
BooleanBiFunction function) |
boolean |
contains(int x,
int y,
int z) |
protected int |
getIndex(int x,
int y,
int z) |
int |
getMax(Direction.Axis axis) |
int |
getMin(Direction.Axis axis) |
protected boolean |
isColumnFull(int minZ,
int maxZ,
int x,
int y) |
boolean |
isEmpty() |
void |
set(int x,
int y,
int z,
boolean resize,
boolean included) |
protected void |
setColumn(int minZ,
int maxZ,
int x,
int y,
boolean included) |
contains, forEachBox, forEachDirection, forEachEdge, getEndingAxisCoord, getSize, getXSize, getYSize, getZSize, inBoundsAndContains, inBoundsAndContains, isRectangleFull
private final BitSet storage
private int xMin
private int yMin
private int zMin
private int xMax
private int yMax
private int zMax
public BitSetVoxelSet(int xSize, int ySize, int zSize)
public BitSetVoxelSet(int xMask, int yMask, int zMask, int xMin, int yMin, int zMin, int xMax, int yMax, int zMax)
public BitSetVoxelSet(VoxelSet other)
protected int getIndex(int x, int y, int z)
public void set(int x, int y, int z, boolean resize, boolean included)
public int getMin(Direction.Axis axis)
public int getMax(Direction.Axis axis)
protected boolean isColumnFull(int minZ, int maxZ, int x, int y)
isColumnFull
in class VoxelSet
protected void setColumn(int minZ, int maxZ, int x, int y, boolean included)
static BitSetVoxelSet combine(VoxelSet first, VoxelSet second, PairList xPoints, PairList yPoints, PairList zPoints, BooleanBiFunction function)