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 DiscreteVoxelShape
DiscreteVoxelShape.IntFaceConsumer, DiscreteVoxelShape.IntLineConsumer -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BitSetprivate intprivate intprivate intprivate intprivate intprivate intFields inherited from class DiscreteVoxelShape
xSize, ySize, zSize -
Constructor Summary
ConstructorsConstructorDescriptionBitSetDiscreteVoxelShape(int xSize, int ySize, int zSize) BitSetDiscreteVoxelShape(DiscreteVoxelShape voxelShape) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidclearZStrip(int startZ, int endZ, int x, int y) voidfill(int x, int y, int z) private voidfillUpdateBounds(int x, int y, int z, boolean updateBounds) intfirstFull(Direction.Axis axis) protected static voidforAllBoxes(DiscreteVoxelShape voxelShape, DiscreteVoxelShape.IntLineConsumer consumer, boolean mergeNeighbors) protected intgetIndex(int x, int y, int z) booleanisEmpty()booleanisFull(int x, int y, int z) booleanisInterior(int x, int y, int z) private booleanisXZRectangleFull(int startX, int endX, int startZ, int endZ, int y) private booleanisZStripFull(int startZ, int endZ, int x, int y) (package private) static BitSetDiscreteVoxelShapejoin(DiscreteVoxelShape first, DiscreteVoxelShape second, IndexMerger xMerger, IndexMerger yMerger, IndexMerger zMerger, BooleanOp op) intlastFull(Direction.Axis axis) static BitSetDiscreteVoxelShapewithFilledBounds(int xSize, int ySize, int zSize, int xMin, int yMin, int zMin, int xMax, int yMax, int zMax) Methods inherited from class 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 xSize, int ySize, int zSize) -
BitSetDiscreteVoxelShape
-
-
Method Details
-
withFilledBounds
public static BitSetDiscreteVoxelShape withFilledBounds(int xSize, int ySize, int zSize, int xMin, int yMin, int zMin, int xMax, int yMax, int zMax) -
getIndex
protected int getIndex(int x, int y, int z) -
isFull
public boolean isFull(int x, int y, int z) - Specified by:
isFullin classDiscreteVoxelShape
-
fillUpdateBounds
private void fillUpdateBounds(int x, int y, int z, boolean updateBounds) -
fill
public void fill(int x, int y, int z) - 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 first, DiscreteVoxelShape second, IndexMerger xMerger, IndexMerger yMerger, IndexMerger zMerger, BooleanOp op) -
forAllBoxes
protected static void forAllBoxes(DiscreteVoxelShape voxelShape, DiscreteVoxelShape.IntLineConsumer consumer, boolean mergeNeighbors) -
isZStripFull
private boolean isZStripFull(int startZ, int endZ, int x, int y) -
isXZRectangleFull
private boolean isXZRectangleFull(int startX, int endX, int startZ, int endZ, int y) -
clearZStrip
private void clearZStrip(int startZ, int endZ, int x, int y) -
isInterior
public boolean isInterior(int x, int y, int z)
-