类的使用
org.bukkit.util.BoundingBox
程序包
说明
Bukkit API的顶级程序包, 包含通用的API类和接口.
用于操作在
世界
内的三位像素(方块),包括一些特定的状态.为在
世界
内存在的非三维像素单位(实体)提供的接口,包含玩家、怪物、抛射物等.Classes to facilitate world
Structure
generation.提供多种目的和单一目的的类以简化各种编程概念.
-
org.bukkit中BoundingBox的使用
修饰符和类型方法说明World.getIntersectingChunks
(@NotNull BoundingBox box) Gets all Chunks intersecting the given BoundingBox.World.getNearbyEntities
(@NotNull BoundingBox boundingBox) Returns a list of entities within the given bounding box.World.getNearbyEntities
(@NotNull BoundingBox boundingBox, @Nullable Predicate<? super Entity> filter) Returns a list of entities within the given bounding box. -
org.bukkit.block中BoundingBox的使用
修饰符和类型方法说明Block.getBoundingBox()
Gets the approximate bounding box for this block.Conduit.getHuntingArea()
Get aBoundingBox
(relative to real-world coordinates) in which the conduit will search for hostile entities to target. -
org.bukkit.entity中BoundingBox的使用
-
org.bukkit.event.world中BoundingBox的使用
修饰符和类型方法说明AsyncStructureGenerateEvent.getBoundingBox()
Get the bounding box of the structure.AsyncStructureSpawnEvent.getBoundingBox()
Get the bounding box of the structure.限定符构造器说明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()
Gets the bounding box of this placed structure.StructurePiece.getBoundingBox()
Gets the bounding box of this structure piece. -
org.bukkit.util中BoundingBox的使用
修饰符和类型方法说明BoundingBox.clone()
Creates a copy of this bounding box.BoundingBox.copy
(@NotNull BoundingBox other) Copies another bounding box.static @NotNull BoundingBox
BoundingBox.deserialize
(@NotNull Map<String, Object> args) BoundingBox.expand
(double expansion) Expands this bounding box uniformly by the given value in all directions.BoundingBox.expand
(double x, double y, double z) Expands this bounding box uniformly by the given values in both positive and negative directions.BoundingBox.expand
(double dirX, double dirY, double dirZ, double expansion) Expands this bounding box in the specified direction.BoundingBox.expand
(double negativeX, double negativeY, double negativeZ, double positiveX, double positiveY, double positiveZ) Expands this bounding box by the given values in the corresponding directions.Expands this bounding box in the direction specified by the given block face.Expands this bounding box uniformly by the given values in both positive and negative directions.Expands this bounding box in the specified direction.BoundingBox.expandDirectional
(double dirX, double dirY, double dirZ) Expands this bounding box in the specified direction.BoundingBox.expandDirectional
(@NotNull Vector direction) Expands this bounding box in the specified direction.BoundingBox.intersection
(@NotNull BoundingBox other) Resizes this bounding box to represent the intersection of this and the given bounding box.static @NotNull BoundingBox
Creates a new 1x1x1 sized bounding box containing the given block.static @NotNull BoundingBox
Creates a new bounding box using the coordinates of the given blocks as corners.static @NotNull BoundingBox
Creates a new bounding box using the given center and extents.static @NotNull BoundingBox
Creates a new bounding box using the coordinates of the given locations as corners.static @NotNull BoundingBox
Creates a new bounding box using the given center and extents.static @NotNull BoundingBox
Creates a new bounding box using the coordinates of the given vectors as corners.BoundingBox.resize
(double x1, double y1, double z1, double x2, double y2, double z2) Resizes this bounding box.BoundingBox.shift
(double shiftX, double shiftY, double shiftZ) Shifts this bounding box by the given amounts.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.Expands this bounding box to contain (or border) the specified position.BoundingBox.union
(@NotNull BoundingBox other) Expands this bounding box to contain both this and the given bounding box.Expands this bounding box to contain (or border) the specified position.修饰符和类型方法说明VoxelShape.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.修饰符和类型方法说明boolean
BoundingBox.contains
(@NotNull BoundingBox other) Checks if this bounding box fully contains the given bounding box.BoundingBox.copy
(@NotNull BoundingBox other) Copies another bounding box.BoundingBox.intersection
(@NotNull BoundingBox other) Resizes this bounding box to represent the intersection of this and the given bounding box.boolean
BoundingBox.overlaps
(@NotNull BoundingBox other) Checks if this bounding box overlaps with the given bounding box.boolean
VoxelShape.overlaps
(@NotNull BoundingBox other) Checks if the given bounding box intersects this block shape.BoundingBox.union
(@NotNull BoundingBox other) Expands this bounding box to contain both this and the given bounding box.