public abstract class VoxelSet extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
VoxelSet.PositionBiConsumer |
static interface |
VoxelSet.PositionConsumer |
Modifier and Type | Field and Description |
---|---|
private static Direction.Axis[] |
AXES |
protected int |
xSize |
protected int |
ySize |
protected int |
zSize |
Modifier | Constructor and Description |
---|---|
protected |
VoxelSet(int xSize,
int ySize,
int zSize) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(AxisCycleDirection cycle,
int x,
int y,
int z) |
abstract boolean |
contains(int x,
int y,
int z) |
void |
forEachBox(VoxelSet.PositionBiConsumer consumer,
boolean largest) |
void |
forEachDirection(VoxelSet.PositionConsumer positionConsumer) |
private void |
forEachDirection(VoxelSet.PositionConsumer positionConsumer,
AxisCycleDirection direction) |
private void |
forEachEdge(VoxelSet.PositionBiConsumer positionBiConsumer,
AxisCycleDirection direction,
boolean bool) |
void |
forEachEdge(VoxelSet.PositionBiConsumer positionBiConsumer,
boolean bool) |
int |
getEndingAxisCoord(Direction.Axis axis,
int from,
int to) |
abstract int |
getMax(Direction.Axis axis) |
abstract int |
getMin(Direction.Axis axis) |
int |
getSize(Direction.Axis axis) |
int |
getXSize() |
int |
getYSize() |
int |
getZSize() |
boolean |
inBoundsAndContains(AxisCycleDirection cycle,
int x,
int y,
int z) |
boolean |
inBoundsAndContains(int x,
int y,
int z) |
protected boolean |
isColumnFull(int minZ,
int maxZ,
int x,
int y) |
boolean |
isEmpty() |
protected boolean |
isRectangleFull(int minX,
int maxX,
int minZ,
int maxZ,
int y) |
abstract 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) |
private static final Direction.Axis[] AXES
protected final int xSize
protected final int ySize
protected final int zSize
public boolean inBoundsAndContains(AxisCycleDirection cycle, int x, int y, int z)
public boolean inBoundsAndContains(int x, int y, int z)
public boolean contains(AxisCycleDirection cycle, int x, int y, int z)
public abstract boolean contains(int x, int y, int z)
public abstract void set(int x, int y, int z, boolean resize, boolean included)
public boolean isEmpty()
public abstract int getMin(Direction.Axis axis)
public abstract int getMax(Direction.Axis axis)
@Environment(value=CLIENT) public int getEndingAxisCoord(Direction.Axis axis, int from, int to)
public int getSize(Direction.Axis axis)
public int getXSize()
public int getYSize()
public int getZSize()
@Environment(value=CLIENT) public void forEachEdge(VoxelSet.PositionBiConsumer positionBiConsumer, boolean bool)
@Environment(value=CLIENT) private void forEachEdge(VoxelSet.PositionBiConsumer positionBiConsumer, AxisCycleDirection direction, boolean bool)
protected boolean isColumnFull(int minZ, int maxZ, int x, int y)
protected void setColumn(int minZ, int maxZ, int x, int y, boolean included)
protected boolean isRectangleFull(int minX, int maxX, int minZ, int maxZ, int y)
public void forEachBox(VoxelSet.PositionBiConsumer consumer, boolean largest)
public void forEachDirection(VoxelSet.PositionConsumer positionConsumer)
private void forEachDirection(VoxelSet.PositionConsumer positionConsumer, AxisCycleDirection direction)