Package net.minecraft.world.phys.shapes
Class VoxelShape
java.lang.Object
net.minecraft.world.phys.shapes.VoxelShape
- Direct Known Subclasses:
ArrayVoxelShape,CubeVoxelShape,SliceShape
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbounds()private VoxelShapecalculateFace(Direction pSide) closestPointTo(Vec3 pPoint) doublecollide(Direction.Axis pMovementAxis, AABB pCollisionBox, double pDesiredOffset) protected doublebooleanprotected intfindIndex(Direction.Axis pAxis, double pPosition) voidforAllBoxes(Shapes.DoubleLineConsumer pAction) voidforAllEdges(Shapes.DoubleLineConsumer pAction) protected doubleget(Direction.Axis pAxis, int pIndex) abstract it.unimi.dsi.fastutil.doubles.DoubleListgetCoords(Direction.Axis pAxis) getFaceShape(Direction pSide) Projects this shape onto the given side.protected booleanprivate booleanisCubeLikeAlong(Direction.Axis pAxis) booleanisEmpty()doublemax(Direction.Axis pAxis) doublemax(Direction.Axis pAxis, double pPrimaryPosition, double pSecondaryPosition) doublemin(Direction.Axis pAxis) doublemin(Direction.Axis pAxis, double pPrimaryPosition, double pSecondaryPosition) move(double pXOffset, double pYOffset, double pZOffset) optimize()toAabbs()toString()
-
Field Details
-
shape
-
faces
-
-
Constructor Details
-
VoxelShape
-
-
Method Details
-
min
-
max
-
bounds
-
singleEncompassing
-
get
-
getCoords
-
isEmpty
public boolean isEmpty() -
move
-
move
-
move
-
optimize
-
forAllEdges
-
forAllBoxes
-
toAabbs
-
min
-
max
-
findIndex
-
clip
-
closestPointTo
-
getFaceShape
Projects this shape onto the given side. For each box in the shape, if it does not touch the given side, it is eliminated. Otherwise, the box is extended in the given axis to cover the entire range [0, 1]. -
calculateFace
-
isCubeLike
protected boolean isCubeLike() -
isCubeLikeAlong
-
collide
-
collideX
-
equals
-
toString
-