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 zMin, int zMax, int x, int y) void
fill
(int x, int y, int z) private void
fillUpdateBounds
(int x, int y, int z, boolean update) int
firstFull
(Direction.Axis axis) protected static void
forAllBoxes
(DiscreteVoxelShape shape, DiscreteVoxelShape.IntLineConsumer consumer, boolean combine) protected int
getIndex
(int x, int y, int z) boolean
isEmpty()
boolean
isFull
(int x, int y, int z) boolean
isInterior
(int x, int y, int z) private boolean
isXZRectangleFull
(int xMin, int xMax, int zMin, int zMax, int y) private boolean
isZStripFull
(int zMin, int zMax, int x, int y) (package private) static BitSetDiscreteVoxelShape
join
(DiscreteVoxelShape mainShape, DiscreteVoxelShape secondaryShape, IndexMerger mergerX, IndexMerger mergerY, IndexMerger mergerZ, BooleanOp operator) int
lastFull
(Direction.Axis axis) static BitSetDiscreteVoxelShape
withFilledBounds
(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:
isFull
in 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:
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 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)
-