Package net.minecraft.util.shape
Class VoxelShape
java.lang.Object
net.minecraft.util.shape.VoxelShape
- Direct Known Subclasses:
ArrayVoxelShape,SimpleVoxelShape,SlicedVoxelShape
public abstract class VoxelShape extends Object
-
Field Summary
Fields Modifier and Type Field Description private VoxelShape[]shapeCacheprotected VoxelSetvoxels -
Constructor Summary
Constructors Constructor Description VoxelShape(VoxelSet voxels) -
Method Summary
Modifier and Type Method Description protected doublecalculateMaxDistance(AxisCycleDirection axisCycle, Box box, double maxDist)doublecalculateMaxDistance(Direction.Axis axis, Box box, double maxDist)voidforEachBox(VoxelShapes.BoxConsumer boxConsumer)voidforEachEdge(VoxelShapes.BoxConsumer boxConsumer)BoxgetBoundingBox()List<Box>getBoundingBoxes()protected intgetCoordIndex(Direction.Axis axis, double coord)doublegetEndingCoord(Direction.Axis axis, double from, double to)VoxelShapegetFace(Direction facing)doublegetMax(Direction.Axis axis)doublegetMin(Direction.Axis axis)protected doublegetPointPosition(Direction.Axis axis, int index)protected abstract DoubleListgetPointPositions(Direction.Axis axis)private VoxelShapegetUncachedFace(Direction direction)booleanisEmpty()VoxelShapeoffset(double x, double y, double z)BlockHitResultraycast(Vec3d start, Vec3d end, BlockPos pos)VoxelShapesimplify()StringtoString()
-
Field Details
-
voxels
-
shapeCache
-
-
Constructor Details
-
VoxelShape
VoxelShape(VoxelSet voxels)
-
-
Method Details
-
getMin
-
getMax
-
getBoundingBox
-
getPointPosition
-
getPointPositions
-
isEmpty
public boolean isEmpty() -
offset
-
simplify
-
forEachEdge
-
forEachBox
-
getBoundingBoxes
-
getEndingCoord
-
getCoordIndex
-
raycast
-
getFace
-
getUncachedFace
-
calculateMaxDistance
-
calculateMaxDistance
-
toString
-