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 sizeX, int sizeY, int sizeZ)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 BitSetVoxelSetcombine(VoxelSet first, VoxelSet second, PairList xPoints, PairList yPoints, PairList zPoints, BooleanBiFunction function)booleancontains(int x, int y, int z)protected intgetIndex(int x, int y, int z)intgetMax(Direction.Axis axis)intgetMin(Direction.Axis axis)protected booleanisColumnFull(int minZ, int maxZ, int x, int y)booleanisEmpty()voidset(int x, int y, int z, boolean resize, boolean included)protected voidsetColumn(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
-
minX
private int minX -
minY
private int minY -
minZ
private int minZ -
maxX
private int maxX -
maxY
private int maxY -
maxZ
private int maxZ
-
-
Constructor Details
-
BitSetVoxelSet
public BitSetVoxelSet(int sizeX, int sizeY, int sizeZ) -
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:
isColumnFullin 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)
-