程序包 org.bukkit.util

接口 VoxelShape


public interface VoxelShape
由体素组成的形状。 例如,用于表示方块的详细碰撞形状。
  • 方法详细资料

    • getBoundingBoxes

      将此形状转换为等效于该形状的 BoundingBox 集合:如果边界框与该形状的任何边界框相交,则与该方块形状相交。

      原文: 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.

      返回:
      转换为边界框的形状
    • overlaps

      boolean overlaps(@NotNull @NotNull BoundingBox other)
      检查给定边界框是否与此方块形状相交。

      原文: Checks if the given bounding box intersects this block shape.

      参数:
      other - 要测试的边界框
      返回:
      如果 other 与此形状重叠则返回 true,否则返回 false