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 zMin, int zMax, int x, int y) voidfill(int x, int y, int z) private voidfillUpdateBounds(int x, int y, int z, boolean update) intfirstFull(Direction.Axis axis) protected static voidforAllBoxes(DiscreteVoxelShape shape, DiscreteVoxelShape.IntLineConsumer consumer, boolean combine) 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 xMin, int xMax, int zMin, int zMax, int y) private booleanisZStripFull(int zMin, int zMax, int x, int y) (package private) static BitSetDiscreteVoxelShapejoin(DiscreteVoxelShape mainShape, DiscreteVoxelShape secondaryShape, IndexMerger mergerX, IndexMerger mergerY, IndexMerger mergerZ, BooleanOp operator) intlastFull(Direction.Axis axis) static BitSetDiscreteVoxelShapewithFilledBounds(int x, int y, int z, int xMin, int yMin, int zMin, int xMax, int yMax, int zMax) 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 xSize, int ySize, int zSize) -
BitSetDiscreteVoxelShape
-
-
Method Details
-
withFilledBounds
public static BitSetDiscreteVoxelShape withFilledBounds(int x, int y, int z, 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 update) -
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 mainShape, DiscreteVoxelShape secondaryShape, IndexMerger mergerX, IndexMerger mergerY, IndexMerger mergerZ, BooleanOp operator) -
forAllBoxes
protected static void forAllBoxes(DiscreteVoxelShape shape, DiscreteVoxelShape.IntLineConsumer consumer, boolean combine) -
isZStripFull
private boolean isZStripFull(int zMin, int zMax, int x, int y) -
isXZRectangleFull
private boolean isXZRectangleFull(int xMin, int xMax, int zMin, int zMax, int y) -
clearZStrip
private void clearZStrip(int zMin, int zMax, int x, int y) -
isInterior
public boolean isInterior(int x, int y, int z)
-