类的使用
org.bukkit.util.BoundingBox
使用BoundingBox的程序包
程序包
说明
Bukkit API的顶级程序包, 包含通用的API类和接口.
用于操作在
世界内的三位像素(方块),包括一些特定的状态.为在
世界内存在的非三维像素单位(实体)提供的接口,包含玩家、怪物、抛射物等.Classes to facilitate world
Structure
generation.提供多种目的和单一目的的类以简化各种编程概念.
-
org.bukkit中BoundingBox的使用
参数类型为BoundingBox的org.bukkit中的方法修饰符和类型方法说明World.getIntersectingChunks(@NotNull BoundingBox box) 获取与给定边界框相交的所有区块.World.getNearbyEntities(@NotNull BoundingBox boundingBox) 返回给定边界框内的所有实体列表.World.getNearbyEntities(@NotNull BoundingBox boundingBox, @Nullable Predicate<? super Entity> filter) 返回给定边界框内的所有实体列表. -
org.bukkit.block中BoundingBox的使用
返回BoundingBox的org.bukkit.block中的方法修饰符和类型方法说明Block.getBoundingBox()获取此方块的大致边界框.Conduit.getHuntingArea()获取潮涌核心将在其中搜索敌对实体作为目标的边界框(相对于真实世界坐标). -
org.bukkit.entity中BoundingBox的使用
返回BoundingBox的org.bukkit.entity中的方法 -
org.bukkit.event.world中BoundingBox的使用
修饰符和类型方法说明AsyncStructureGenerateEvent.getBoundingBox()获取结构的边界框。AsyncStructureSpawnEvent.getBoundingBox()获取结构的边界框。参数类型为BoundingBox的org.bukkit.event.world中的构造器限定符构造器说明AsyncStructureGenerateEvent(@NotNull World world, boolean async, @NotNull AsyncStructureGenerateEvent.Cause cause, @NotNull Structure structure, @NotNull BoundingBox boundingBox, int chunkX, int chunkZ) AsyncStructureSpawnEvent(@NotNull World world, @NotNull Structure structure, @NotNull BoundingBox boundingBox, int chunkX, int chunkZ) -
org.bukkit.generator.structure中BoundingBox的使用
修饰符和类型方法说明GeneratedStructure.getBoundingBox()获取此放置结构的边界框。StructurePiece.getBoundingBox()获取此结构部件的边界框. -
org.bukkit.util中BoundingBox的使用
返回BoundingBox的org.bukkit.util中的方法修饰符和类型方法说明BoundingBox.clone()创建此边界框的副本。BoundingBox.copy(@NotNull BoundingBox other) 复制另一个边界框。static @NotNull BoundingBoxBoundingBox.deserialize(@NotNull Map<String, Object> args) BoundingBox.expand(double expansion) 在所有方向上按给定值均匀扩展此边界框。BoundingBox.expand(double x, double y, double z) 在正负方向上按给定值均匀扩展此边界框。BoundingBox.expand(double dirX, double dirY, double dirZ, double expansion) 在指定方向上扩展此边界框。BoundingBox.expand(double negativeX, double negativeY, double negativeZ, double positiveX, double positiveY, double positiveZ) 在相应方向上按给定值扩展此边界框。在给定方块面指定的方向上扩展此边界框。在正负方向上按给定值均匀扩展此边界框。在指定方向上扩展此边界框。BoundingBox.expandDirectional(double dirX, double dirY, double dirZ) 在指定方向上扩展此边界框。BoundingBox.expandDirectional(@NotNull Vector direction) 在指定方向上扩展此边界框。BoundingBox.intersection(@NotNull BoundingBox other) 调整此边界框大小以表示此边界框与给定边界的交集。static @NotNull BoundingBox创建包含给定方块的新 1x1x1 大小边界框。static @NotNull BoundingBox使用给定方块的坐标作为角创建新的边界框。static @NotNull BoundingBox使用给定中心和范围创建新的边界框。static @NotNull BoundingBox使用给定位置的坐标作为角创建新的边界框。static @NotNull BoundingBox使用给定中心和范围创建新的边界框。static @NotNull BoundingBox使用给定向量的坐标作为角创建新的边界框。BoundingBox.resize(double x1, double y1, double z1, double x2, double y2, double z2) 调整此边界框的大小。BoundingBox.shift(double shiftX, double shiftY, double shiftZ) 按给定量移动此边界框。Shifts this bounding box by the given amounts.Shifts this bounding box by the given amounts.BoundingBox.union(double posX, double posY, double posZ) 扩展此边界框以包含(或边界)指定位置。Expands this bounding box to contain (or border) the specified position.BoundingBox.union(@NotNull BoundingBox other) 扩展此边界框以包含此边界框和给定边界框。Expands this bounding box to contain (or border) the specified position.返回变量类型为BoundingBox的类型的org.bukkit.util中的方法修饰符和类型方法说明VoxelShape.getBoundingBoxes()将此形状转换为等效于该形状的BoundingBox集合:如果边界框与该形状的任何边界框相交,则与该方块形状相交。参数类型为BoundingBox的org.bukkit.util中的方法修饰符和类型方法说明booleanBoundingBox.contains(@NotNull BoundingBox other) 检查此边界框是否完全包含给定边界框。BoundingBox.copy(@NotNull BoundingBox other) 复制另一个边界框。BoundingBox.intersection(@NotNull BoundingBox other) 调整此边界框大小以表示此边界框与给定边界的交集。booleanBoundingBox.overlaps(@NotNull BoundingBox other) 检查此边界框是否与给定边界框重叠。booleanVoxelShape.overlaps(@NotNull BoundingBox other) 检查给定边界框是否与此方块形状相交。BoundingBox.union(@NotNull BoundingBox other) 扩展此边界框以包含此边界框和给定边界框。