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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbounds()private VoxelShapecalculateFace(Direction p_222863_1_) doublecollide(Direction.Axis p_212430_1_, AxisAlignedBB p_212430_2_, double p_212430_3_) protected doublecollideX(AxisRotation p_212431_1_, AxisAlignedBB p_212431_2_, double p_212431_3_) protected intfindIndex(Direction.Axis p_197749_1_, double p_197749_2_) voidforAllBoxes(VoxelShapes.ILineConsumer p_197755_1_) voidforAllEdges(VoxelShapes.ILineConsumer p_197754_1_) protected doubleget(Direction.Axis p_197759_1_, int p_197759_2_) protected abstract it.unimi.dsi.fastutil.doubles.DoubleListgetCoords(Direction.Axis p_197757_1_) getFaceShape(Direction p_212434_1_) booleanisEmpty()protected booleanisFullWide(double p_211542_1_, double p_211542_3_, double p_211542_5_) doublemax(Direction.Axis p_197758_1_) doublemax(Direction.Axis p_197760_1_, double p_197760_2_, double p_197760_4_) doublemin(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
-