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[]
shapeCache
protected VoxelSet
voxels
-
Constructor Summary
Constructors Constructor Description VoxelShape(VoxelSet voxels)
-
Method Summary
Modifier and Type Method Description protected double
calculateMaxDistance(AxisCycleDirection axisCycle, Box box, double maxDist)
double
calculateMaxDistance(Direction.Axis axis, Box box, double maxDist)
void
forEachBox(VoxelShapes.BoxConsumer boxConsumer)
void
forEachEdge(VoxelShapes.BoxConsumer boxConsumer)
Box
getBoundingBox()
List<Box>
getBoundingBoxes()
protected int
getCoordIndex(Direction.Axis axis, double coord)
double
getEndingCoord(Direction.Axis axis, double from, double to)
VoxelShape
getFace(Direction facing)
double
getMax(Direction.Axis axis)
double
getMin(Direction.Axis axis)
protected double
getPointPosition(Direction.Axis axis, int index)
protected abstract DoubleList
getPointPositions(Direction.Axis axis)
private VoxelShape
getUncachedFace(Direction direction)
boolean
isEmpty()
VoxelShape
offset(double x, double y, double z)
BlockHitResult
raycast(Vec3d start, Vec3d end, BlockPos pos)
VoxelShape
simplify()
String
toString()
-
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
-