Package net.minecraft.world.phys.shapes
Class DiscreteVoxelShape
java.lang.Object
net.minecraft.world.phys.shapes.DiscreteVoxelShape
- Direct Known Subclasses:
BitSetDiscreteVoxelShape
,SubShape
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static interface
-
Field Summary
Modifier and TypeFieldDescriptionprivate static Direction.Axis[]
protected int
protected int
protected int
-
Constructor Summary
ModifierConstructorDescriptionprotected
DiscreteVoxelShape(int p_82787_, int p_82788_, int p_82789_)
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
fill(int p_165998_, int p_165999_, int p_166000_)
abstract int
firstFull(Direction.Axis p_82827_)
int
firstFull(Direction.Axis p_165995_, int p_165996_, int p_165997_)
private void
forAllAxisEdges(DiscreteVoxelShape.IntLineConsumer p_82816_, AxisCycle p_82817_, boolean p_82818_)
private void
forAllAxisFaces(DiscreteVoxelShape.IntFaceConsumer p_82813_, AxisCycle p_82814_)
void
forAllBoxes(DiscreteVoxelShape.IntLineConsumer p_82833_, boolean p_82834_)
void
forAllEdges(DiscreteVoxelShape.IntLineConsumer p_82820_, boolean p_82821_)
void
forAllFaces(DiscreteVoxelShape.IntFaceConsumer p_82811_)
int
getSize(Direction.Axis p_82851_)
int
getXSize()
int
getYSize()
int
getZSize()
boolean
isEmpty()
abstract boolean
isFull(int p_82829_, int p_82830_, int p_82831_)
boolean
boolean
isFullWide(int p_82847_, int p_82848_, int p_82849_)
boolean
isFullWide(AxisCycle p_82823_, int p_82824_, int p_82825_, int p_82826_)
abstract int
lastFull(Direction.Axis p_82840_)
int
lastFull(Direction.Axis p_82842_, int p_82843_, int p_82844_)
-
Field Details
-
AXIS_VALUES
-
xSize
protected final int xSize -
ySize
protected final int ySize -
zSize
protected final int zSize
-
-
Constructor Details
-
DiscreteVoxelShape
protected DiscreteVoxelShape(int p_82787_, int p_82788_, int p_82789_)
-
-
Method Details
-
isFullWide
-
isFullWide
public boolean isFullWide(int p_82847_, int p_82848_, int p_82849_) -
isFull
-
isFull
public abstract boolean isFull(int p_82829_, int p_82830_, int p_82831_) -
fill
public abstract void fill(int p_165998_, int p_165999_, int p_166000_) -
isEmpty
public boolean isEmpty() -
firstFull
-
lastFull
-
firstFull
-
lastFull
-
getSize
-
getXSize
public int getXSize() -
getYSize
public int getYSize() -
getZSize
public int getZSize() -
forAllEdges
-
forAllAxisEdges
private void forAllAxisEdges(DiscreteVoxelShape.IntLineConsumer p_82816_, AxisCycle p_82817_, boolean p_82818_) -
forAllBoxes
-
forAllFaces
-
forAllAxisFaces
-