Package net.minecraft.util.math.shapes
Class VoxelShapePart
java.lang.Object
net.minecraft.util.math.shapes.VoxelShapePart
- Direct Known Subclasses:
BitSetVoxelShapePart
,PartSplitVoxelShape
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static interface
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Direction.Axis[]
protected final int
protected final int
protected final int
-
Constructor Summary
ModifierConstructorDescriptionprotected
VoxelShapePart
(int p_i47686_1_, int p_i47686_2_, int p_i47686_3_) -
Method Summary
Modifier and TypeMethodDescriptionabstract int
firstFull
(Direction.Axis p_199623_1_) private void
forAllAxisEdges
(VoxelShapePart.ILineConsumer p_197832_1_, AxisRotation p_197832_2_, boolean p_197832_3_) private void
forAllAxisFaces
(VoxelShapePart.IFaceConsumer p_211541_1_, AxisRotation p_211541_2_) void
forAllBoxes
(VoxelShapePart.ILineConsumer p_197831_1_, boolean p_197831_2_) void
forAllEdges
(VoxelShapePart.ILineConsumer p_197828_1_, boolean p_197828_2_) void
forAllFaces
(VoxelShapePart.IFaceConsumer p_211540_1_) int
getSize
(Direction.Axis p_197819_1_) int
getXSize()
int
getYSize()
int
getZSize()
boolean
isEmpty()
abstract boolean
isFull
(int p_197835_1_, int p_197835_2_, int p_197835_3_) boolean
isFull
(AxisRotation p_197829_1_, int p_197829_2_, int p_197829_3_, int p_197829_4_) boolean
isFullWide
(int p_197818_1_, int p_197818_2_, int p_197818_3_) boolean
isFullWide
(AxisRotation p_197824_1_, int p_197824_2_, int p_197824_3_, int p_197824_4_) protected boolean
isXZRectangleFull
(int p_197827_1_, int p_197827_2_, int p_197827_3_, int p_197827_4_, int p_197827_5_) protected boolean
isZStripFull
(int p_197833_1_, int p_197833_2_, int p_197833_3_, int p_197833_4_) abstract int
lastFull
(Direction.Axis p_199624_1_) int
lastFull
(Direction.Axis p_197836_1_, int p_197836_2_, int p_197836_3_) abstract void
setFull
(int p_199625_1_, int p_199625_2_, int p_199625_3_, boolean p_199625_4_, boolean p_199625_5_) protected void
setZStrip
(int p_197834_1_, int p_197834_2_, int p_197834_3_, int p_197834_4_, boolean p_197834_5_)
-
Field Details
-
AXIS_VALUES
-
xSize
protected final int xSize -
ySize
protected final int ySize -
zSize
protected final int zSize
-
-
Constructor Details
-
VoxelShapePart
protected VoxelShapePart(int p_i47686_1_, int p_i47686_2_, int p_i47686_3_)
-
-
Method Details
-
isFullWide
public boolean isFullWide(AxisRotation p_197824_1_, int p_197824_2_, int p_197824_3_, int p_197824_4_) -
isFullWide
public boolean isFullWide(int p_197818_1_, int p_197818_2_, int p_197818_3_) -
isFull
-
isFull
public abstract boolean isFull(int p_197835_1_, int p_197835_2_, int p_197835_3_) -
setFull
public abstract void setFull(int p_199625_1_, int p_199625_2_, int p_199625_3_, boolean p_199625_4_, boolean p_199625_5_) -
isEmpty
public boolean isEmpty() -
firstFull
-
lastFull
-
lastFull
-
getSize
-
getXSize
public int getXSize() -
getYSize
public int getYSize() -
getZSize
public int getZSize() -
forAllEdges
-
forAllAxisEdges
private void forAllAxisEdges(VoxelShapePart.ILineConsumer p_197832_1_, AxisRotation p_197832_2_, boolean p_197832_3_) -
isZStripFull
protected boolean isZStripFull(int p_197833_1_, int p_197833_2_, int p_197833_3_, int p_197833_4_) -
setZStrip
protected void setZStrip(int p_197834_1_, int p_197834_2_, int p_197834_3_, int p_197834_4_, boolean p_197834_5_) -
isXZRectangleFull
protected boolean isXZRectangleFull(int p_197827_1_, int p_197827_2_, int p_197827_3_, int p_197827_4_, int p_197827_5_) -
forAllBoxes
-
forAllFaces
-
forAllAxisFaces
-