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 BitSetprivate intprivate intprivate intprivate intprivate intprivate intFields inherited from class net.minecraft.world.phys.shapes.DiscreteVoxelShape
xSize, ySize, zSize -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidclearZStrip(int pZMin, int pZMax, int pX, int pY) voidfill(int p_165987_, int p_165988_, int p_165989_) private voidfillUpdateBounds(int pX, int pY, int pZ, boolean pUpdate) intfirstFull(Direction.Axis pAxis) protected static voidforAllBoxes(DiscreteVoxelShape pShape, DiscreteVoxelShape.IntLineConsumer pConsumer, boolean pCombine) protected intgetIndex(int pX, int pY, int pZ) booleanisEmpty()booleanisFull(int pX, int pY, int pZ) booleanisInterior(int pX, int pY, int pZ) private booleanisXZRectangleFull(int pXMin, int pXMax, int pZMin, int pZMax, int pY) private booleanisZStripFull(int pZMin, int pZMax, int pX, int pY) (package private) static BitSetDiscreteVoxelShapejoin(DiscreteVoxelShape pMainShape, DiscreteVoxelShape pSecondaryShape, IndexMerger pMergerX, IndexMerger pMergerY, IndexMerger pMergerZ, BooleanOp pOperator) intlastFull(Direction.Axis pAxis) static BitSetDiscreteVoxelShapewithFilledBounds(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, rotate
-
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 p_82588_, int p_82589_, int p_82590_) -
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:
isFullin classDiscreteVoxelShape
-
fillUpdateBounds
private void fillUpdateBounds(int pX, int pY, int pZ, boolean pUpdate) -
fill
public void fill(int p_165987_, int p_165988_, int p_165989_) - Specified by:
fillin classDiscreteVoxelShape
-
isEmpty
public boolean isEmpty()- Overrides:
isEmptyin classDiscreteVoxelShape
-
firstFull
- Specified by:
firstFullin classDiscreteVoxelShape
-
lastFull
- Specified by:
lastFullin 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)
-