Package net.minecraft.world.phys.shapes
Class DiscreteVoxelShape
java.lang.Object
net.minecraft.world.phys.shapes.DiscreteVoxelShape
- Direct Known Subclasses:
BitSetDiscreteVoxelShape,SubShape
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Direction.Axis[]protected final intprotected final intprotected final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidfill(int pX, int pY, int pZ) abstract intfirstFull(Direction.Axis pAxis) intfirstFull(Direction.Axis pAxis, int pY, int pZ) private voidforAllAxisEdges(DiscreteVoxelShape.IntLineConsumer pLineConsumer, AxisCycle pAxis, boolean pCombine) private voidforAllAxisFaces(DiscreteVoxelShape.IntFaceConsumer pFaceConsumer, AxisCycle pAxisRotation) voidforAllBoxes(DiscreteVoxelShape.IntLineConsumer pConsumer, boolean pCombine) voidforAllEdges(DiscreteVoxelShape.IntLineConsumer pConsumer, boolean pCombine) voidforAllFaces(DiscreteVoxelShape.IntFaceConsumer pFaceConsumer) intgetSize(Direction.Axis pAxis) intgetXSize()intgetYSize()intgetZSize()booleanisEmpty()abstract booleanisFull(int pX, int pY, int pZ) booleanbooleanisFullWide(int pX, int pY, int pZ) booleanisFullWide(AxisCycle pAxis, int pX, int pY, int pZ) abstract intlastFull(Direction.Axis pAxis) intlastFull(Direction.Axis pAxis, int pY, int pZ) Gives the index of the last filled part in the column.
-
Field Details
-
AXIS_VALUES
-
xSize
protected final int xSize -
ySize
protected final int ySize -
zSize
protected final int zSize
-
-
Constructor Details
-
DiscreteVoxelShape
protected DiscreteVoxelShape(int pXSize, int pYSize, int pZSize)
-
-
Method Details
-
isFullWide
-
isFullWide
public boolean isFullWide(int pX, int pY, int pZ) -
isFull
-
isFull
public abstract boolean isFull(int pX, int pY, int pZ) -
fill
public abstract void fill(int pX, int pY, int pZ) -
isEmpty
public boolean isEmpty() -
firstFull
-
lastFull
-
firstFull
-
lastFull
Gives the index of the last filled part in the column. -
getSize
-
getXSize
public int getXSize() -
getYSize
public int getYSize() -
getZSize
public int getZSize() -
forAllEdges
-
forAllAxisEdges
private void forAllAxisEdges(DiscreteVoxelShape.IntLineConsumer pLineConsumer, AxisCycle pAxis, boolean pCombine) -
forAllBoxes
-
forAllFaces
-
forAllAxisFaces
private void forAllAxisFaces(DiscreteVoxelShape.IntFaceConsumer pFaceConsumer, AxisCycle pAxisRotation)
-