public abstract class VoxelShapePart
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
VoxelShapePart.IFaceConsumer |
static interface |
VoxelShapePart.ILineConsumer |
Modifier and Type | Field and Description |
---|---|
private static Direction.Axis[] |
AXIS_VALUES |
protected int |
xSize |
protected int |
ySize |
protected int |
zSize |
Modifier | Constructor and Description |
---|---|
protected |
VoxelShapePart(int xIn,
int yIn,
int zIn) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(int x,
int y,
int z) |
boolean |
containsWithRotation(AxisRotation p_197824_1_,
int x,
int y,
int z) |
int |
firstFilled(Direction.Axis p_197826_1_,
int p_197826_2_,
int p_197826_3_) |
void |
forEachBox(VoxelShapePart.ILineConsumer consumer,
boolean combine) |
void |
forEachEdge(VoxelShapePart.ILineConsumer consumer,
boolean combine) |
private void |
forEachEdgeOnAxis(VoxelShapePart.ILineConsumer p_197832_1_,
AxisRotation p_197832_2_,
boolean p_197832_3_) |
void |
forEachFace(VoxelShapePart.IFaceConsumer faceConsumer) |
private void |
forEachFaceOnAxis(VoxelShapePart.IFaceConsumer faceConsumer,
AxisRotation axisRotationIn) |
abstract int |
getEnd(Direction.Axis axis) |
int |
getSize(Direction.Axis axis) |
abstract int |
getStart(Direction.Axis axis) |
int |
getXSize() |
int |
getYSize() |
int |
getZSize() |
boolean |
isEmpty() |
abstract boolean |
isFilled(int x,
int y,
int z) |
boolean |
isFilledWithRotation(AxisRotation rotationIn,
int x,
int y,
int z) |
protected boolean |
isXZRectangleFull(int fromX,
int toX,
int fromZ,
int toZ,
int x) |
protected boolean |
isZAxisLineFull(int fromZ,
int toZ,
int x,
int y) |
int |
lastFilled(Direction.Axis p_197836_1_,
int p_197836_2_,
int p_197836_3_) |
abstract void |
setFilled(int x,
int y,
int z,
boolean expandBounds,
boolean filled) |
protected void |
setZAxisLine(int fromZ,
int toZ,
int x,
int y,
boolean filled) |
private static final Direction.Axis[] AXIS_VALUES
protected final int xSize
protected final int ySize
protected final int zSize
public boolean containsWithRotation(AxisRotation p_197824_1_, int x, int y, int z)
public boolean contains(int x, int y, int z)
public boolean isFilledWithRotation(AxisRotation rotationIn, int x, int y, int z)
public abstract boolean isFilled(int x, int y, int z)
public abstract void setFilled(int x, int y, int z, boolean expandBounds, boolean filled)
public boolean isEmpty()
public abstract int getStart(Direction.Axis axis)
public abstract int getEnd(Direction.Axis axis)
public int firstFilled(Direction.Axis p_197826_1_, int p_197826_2_, int p_197826_3_)
public int lastFilled(Direction.Axis p_197836_1_, int p_197836_2_, int p_197836_3_)
public int getSize(Direction.Axis axis)
public int getXSize()
public int getYSize()
public int getZSize()
public void forEachEdge(VoxelShapePart.ILineConsumer consumer, boolean combine)
private void forEachEdgeOnAxis(VoxelShapePart.ILineConsumer p_197832_1_, AxisRotation p_197832_2_, boolean p_197832_3_)
protected boolean isZAxisLineFull(int fromZ, int toZ, int x, int y)
protected void setZAxisLine(int fromZ, int toZ, int x, int y, boolean filled)
protected boolean isXZRectangleFull(int fromX, int toX, int fromZ, int toZ, int x)
public void forEachBox(VoxelShapePart.ILineConsumer consumer, boolean combine)
public void forEachFace(VoxelShapePart.IFaceConsumer faceConsumer)
private void forEachFaceOnAxis(VoxelShapePart.IFaceConsumer faceConsumer, AxisRotation axisRotationIn)