Package net.minecraft.util.shape
Class BitSetVoxelSet
java.lang.Object
net.minecraft.util.shape.VoxelSet
net.minecraft.util.shape.BitSetVoxelSet
public final class BitSetVoxelSet extends VoxelSet
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.util.shape.VoxelSet
VoxelSet.PositionBiConsumer, VoxelSet.PositionConsumer
-
Field Summary
-
Constructor Summary
Constructors Constructor Description BitSetVoxelSet(int xSize, int ySize, int zSize)
BitSetVoxelSet(int xMask, int yMask, int zMask, int xMin, int yMin, int zMin, int xMax, int yMax, int zMax)
BitSetVoxelSet(VoxelSet other)
-
Method Summary
Modifier and Type Method Description (package private) static BitSetVoxelSet
combine(VoxelSet first, VoxelSet second, PairList xPoints, PairList yPoints, PairList zPoints, BooleanBiFunction function)
boolean
contains(int x, int y, int z)
protected int
getIndex(int x, int y, int z)
int
getMax(Direction.Axis axis)
int
getMin(Direction.Axis axis)
protected boolean
isColumnFull(int minZ, int maxZ, int x, int y)
boolean
isEmpty()
void
set(int x, int y, int z, boolean resize, boolean included)
protected void
setColumn(int minZ, int maxZ, int x, int y, boolean included)
Methods inherited from class net.minecraft.util.shape.VoxelSet
contains, forEachBox, forEachDirection, forEachEdge, getEndingAxisCoord, getSize, getXSize, getYSize, getZSize, inBoundsAndContains, inBoundsAndContains, isRectangleFull
-
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
-
BitSetVoxelSet
public BitSetVoxelSet(int xSize, int ySize, int zSize) -
BitSetVoxelSet
public BitSetVoxelSet(int xMask, int yMask, int zMask, int xMin, int yMin, int zMin, int xMax, int yMax, int zMax) -
BitSetVoxelSet
-
-
Method Details
-
getIndex
protected int getIndex(int x, int y, int z) -
contains
public boolean contains(int x, int y, int z) -
set
public void set(int x, int y, int z, boolean resize, boolean included) -
isEmpty
public boolean isEmpty() -
getMin
-
getMax
-
isColumnFull
protected boolean isColumnFull(int minZ, int maxZ, int x, int y)- Overrides:
isColumnFull
in classVoxelSet
-
setColumn
protected void setColumn(int minZ, int maxZ, int x, int y, boolean included) -
combine
static BitSetVoxelSet combine(VoxelSet first, VoxelSet second, PairList xPoints, PairList yPoints, PairList zPoints, BooleanBiFunction function)
-