Package net.minecraft.util.math.shapes
Class VoxelShapePart
- java.lang.Object
-
- net.minecraft.util.math.shapes.VoxelShapePart
-
- Direct Known Subclasses:
BitSetVoxelShapePart
,PartSplitVoxelShape
public abstract class VoxelShapePart extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
VoxelShapePart.IFaceConsumer
static interface
VoxelShapePart.ILineConsumer
-
Field Summary
Fields Modifier and Type Field Description private static Direction.Axis[]
AXIS_VALUES
protected int
xSize
protected int
ySize
protected int
zSize
-
Constructor Summary
Constructors Modifier Constructor Description protected
VoxelShapePart(int p_i47686_1_, int p_i47686_2_, int p_i47686_3_)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract 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 Detail
-
AXIS_VALUES
private static final Direction.Axis[] AXIS_VALUES
-
xSize
protected final int xSize
-
ySize
protected final int ySize
-
zSize
protected final int zSize
-
-
Method Detail
-
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
public boolean isFull(AxisRotation p_197829_1_, int p_197829_2_, int p_197829_3_, int p_197829_4_)
-
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
public abstract int firstFull(Direction.Axis p_199623_1_)
-
lastFull
public abstract int lastFull(Direction.Axis p_199624_1_)
-
lastFull
public int lastFull(Direction.Axis p_197836_1_, int p_197836_2_, int p_197836_3_)
-
getSize
public int getSize(Direction.Axis p_197819_1_)
-
getXSize
public int getXSize()
-
getYSize
public int getYSize()
-
getZSize
public int getZSize()
-
forAllEdges
public void forAllEdges(VoxelShapePart.ILineConsumer p_197828_1_, boolean p_197828_2_)
-
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
public void forAllBoxes(VoxelShapePart.ILineConsumer p_197831_1_, boolean p_197831_2_)
-
forAllFaces
public void forAllFaces(VoxelShapePart.IFaceConsumer p_211540_1_)
-
forAllAxisFaces
private void forAllAxisFaces(VoxelShapePart.IFaceConsumer p_211541_1_, AxisRotation p_211541_2_)
-
-