Package net.minecraft.util.math.shapes
Class VoxelShape
java.lang.Object
net.minecraft.util.math.shapes.VoxelShape
- Direct Known Subclasses:
SplitVoxelShape
,VoxelShapeArray
,VoxelShapeCube
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbounds()
private VoxelShape
calculateFace
(Direction p_222863_1_) double
collide
(Direction.Axis p_212430_1_, AxisAlignedBB p_212430_2_, double p_212430_3_) protected double
collideX
(AxisRotation p_212431_1_, AxisAlignedBB p_212431_2_, double p_212431_3_) protected int
findIndex
(Direction.Axis p_197749_1_, double p_197749_2_) void
forAllBoxes
(VoxelShapes.ILineConsumer p_197755_1_) void
forAllEdges
(VoxelShapes.ILineConsumer p_197754_1_) protected double
get
(Direction.Axis p_197759_1_, int p_197759_2_) protected abstract it.unimi.dsi.fastutil.doubles.DoubleList
getCoords
(Direction.Axis p_197757_1_) getFaceShape
(Direction p_212434_1_) boolean
isEmpty()
protected boolean
isFullWide
(double p_211542_1_, double p_211542_3_, double p_211542_5_) double
max
(Direction.Axis p_197758_1_) double
max
(Direction.Axis p_197760_1_, double p_197760_2_, double p_197760_4_) double
min
(Direction.Axis p_197762_1_) move
(double p_197751_1_, double p_197751_3_, double p_197751_5_) optimize()
toAabbs()
toString()
-
Field Details
-
shape
-
faces
-
-
Constructor Details
-
VoxelShape
VoxelShape(VoxelShapePart p_i47680_1_)
-
-
Method Details
-
min
-
max
-
bounds
-
get
-
getCoords
-
isEmpty
public boolean isEmpty() -
move
-
optimize
-
forAllEdges
-
forAllBoxes
-
toAabbs
-
max
-
findIndex
-
isFullWide
protected boolean isFullWide(double p_211542_1_, double p_211542_3_, double p_211542_5_) -
clip
@Nullable public BlockRayTraceResult clip(Vector3d p_212433_1_, Vector3d p_212433_2_, BlockPos p_212433_3_) -
getFaceShape
-
calculateFace
-
collide
-
collideX
-
toString
-