Package net.minecraft.world.phys.shapes
Class BitSetDiscreteVoxelShape
java.lang.Object
net.minecraft.world.phys.shapes.DiscreteVoxelShape
net.minecraft.world.phys.shapes.BitSetDiscreteVoxelShape
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.phys.shapes.DiscreteVoxelShape
DiscreteVoxelShape.IntFaceConsumer, DiscreteVoxelShape.IntLineConsumer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BitSet
private int
private int
private int
private int
private int
private int
Fields inherited from class net.minecraft.world.phys.shapes.DiscreteVoxelShape
xSize, ySize, zSize
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
clearZStrip
(int pZMin, int pZMax, int pX, int pY) void
fill
(int pX, int pY, int pZ) private void
fillUpdateBounds
(int pX, int pY, int pZ, boolean pUpdate) int
firstFull
(Direction.Axis pAxis) protected static void
forAllBoxes
(DiscreteVoxelShape pShape, DiscreteVoxelShape.IntLineConsumer pConsumer, boolean pCombine) protected int
getIndex
(int pX, int pY, int pZ) boolean
isEmpty()
boolean
isFull
(int pX, int pY, int pZ) boolean
isInterior
(int pX, int pY, int pZ) private boolean
isXZRectangleFull
(int pXMin, int pXMax, int pZMin, int pZMax, int pY) private boolean
isZStripFull
(int pZMin, int pZMax, int pX, int pY) (package private) static BitSetDiscreteVoxelShape
join
(DiscreteVoxelShape pMainShape, DiscreteVoxelShape pSecondaryShape, IndexMerger pMergerX, IndexMerger pMergerY, IndexMerger pMergerZ, BooleanOp pOperator) int
lastFull
(Direction.Axis pAxis) static BitSetDiscreteVoxelShape
withFilledBounds
(int pX, int pY, int pZ, int pXMin, int pYMin, int pZMin, int pXMax, int pYMax, int pZMax) Methods inherited from class net.minecraft.world.phys.shapes.DiscreteVoxelShape
firstFull, forAllBoxes, forAllEdges, forAllFaces, getSize, getXSize, getYSize, getZSize, isFull, isFullWide, isFullWide, lastFull
-
Field Details
-
storage
-
xMin
private int xMin -
yMin
private int yMin -
zMin
private int zMin -
xMax
private int xMax -
yMax
private int yMax -
zMax
private int zMax
-
-
Constructor Details
-
BitSetDiscreteVoxelShape
public BitSetDiscreteVoxelShape(int pXSize, int pYSize, int pZSize) -
BitSetDiscreteVoxelShape
-
-
Method Details
-
withFilledBounds
public static BitSetDiscreteVoxelShape withFilledBounds(int pX, int pY, int pZ, int pXMin, int pYMin, int pZMin, int pXMax, int pYMax, int pZMax) -
getIndex
protected int getIndex(int pX, int pY, int pZ) -
isFull
public boolean isFull(int pX, int pY, int pZ) - Specified by:
isFull
in classDiscreteVoxelShape
-
fillUpdateBounds
private void fillUpdateBounds(int pX, int pY, int pZ, boolean pUpdate) -
fill
public void fill(int pX, int pY, int pZ) - Specified by:
fill
in classDiscreteVoxelShape
-
isEmpty
public boolean isEmpty()- Overrides:
isEmpty
in classDiscreteVoxelShape
-
firstFull
- Specified by:
firstFull
in classDiscreteVoxelShape
-
lastFull
- Specified by:
lastFull
in classDiscreteVoxelShape
-
join
static BitSetDiscreteVoxelShape join(DiscreteVoxelShape pMainShape, DiscreteVoxelShape pSecondaryShape, IndexMerger pMergerX, IndexMerger pMergerY, IndexMerger pMergerZ, BooleanOp pOperator) -
forAllBoxes
protected static void forAllBoxes(DiscreteVoxelShape pShape, DiscreteVoxelShape.IntLineConsumer pConsumer, boolean pCombine) -
isZStripFull
private boolean isZStripFull(int pZMin, int pZMax, int pX, int pY) -
isXZRectangleFull
private boolean isXZRectangleFull(int pXMin, int pXMax, int pZMin, int pZMax, int pY) -
clearZStrip
private void clearZStrip(int pZMin, int pZMax, int pX, int pY) -
isInterior
public boolean isInterior(int pX, int pY, int pZ)
-