程序包 org.bukkit.util
接口 VoxelShape
public interface VoxelShape
A shape made out of voxels.
For example, used to represent the detailed collision shape of blocks.
-
方法概要
修饰符和类型方法说明Converts this shape into a collection ofBoundingBox
equivalent to the shape: a bounding box intersects with this block shape if it intersects with any of the shape's bounding boxes.boolean
overlaps
(@NotNull BoundingBox other) Checks if the given bounding box intersects this block shape.
-
方法详细资料
-
getBoundingBoxes
Converts this shape into a collection ofBoundingBox
equivalent to the shape: a bounding box intersects with this block shape if it intersects with any of the shape's bounding boxes.- 返回:
- shape converted to bounding boxes
-
overlaps
Checks if the given bounding box intersects this block shape.- 参数:
other
- bounding box to test- 返回:
- true if other overlaps this, false otherwise
-