程序包 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 of BoundingBox equivalent to the shape: a bounding box intersects with this block shape if it intersects with any of the shape's bounding boxes.
    boolean
    Checks if the given bounding box intersects this block shape.
  • 方法详细资料

    • getBoundingBoxes

      Converts this shape into a collection of BoundingBox 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

      boolean overlaps(@NotNull @NotNull BoundingBox other)
      Checks if the given bounding box intersects this block shape.
      参数:
      other - bounding box to test
      返回:
      true if other overlaps this, false otherwise