Uses of Class
org.bukkit.util.BoundingBox
Package
Description
The root package of the Bukkit API, contains generalized API classes.
Classes used to manipulate the voxels in a
world
,
including special states.Interfaces for non-voxel objects that can exist in a
world
, including all players, monsters, projectiles, etc.Multi and single purpose classes to facilitate various programmatic
concepts.
-
Uses of BoundingBox in org.bukkit
Modifier and TypeMethodDescriptionWorld.getNearbyEntities
(BoundingBox boundingBox) Returns a list of entities within the given bounding box.World.getNearbyEntities
(BoundingBox boundingBox, Predicate<? super Entity> filter) Returns a list of entities within the given bounding box. -
Uses of BoundingBox in org.bukkit.block
Modifier and TypeMethodDescriptionBlock.getBoundingBox()
Gets the approximate bounding box for this block. -
Uses of BoundingBox in org.bukkit.entity
Modifier and TypeMethodDescriptionEntity.getBoundingBox()
Gets the entity's current bounding box. -
Uses of BoundingBox in org.bukkit.event.world
Modifier and TypeMethodDescriptionAsyncStructureGenerateEvent.getBoundingBox()
Get the bounding box of the structure.AsyncStructureSpawnEvent.getBoundingBox()
Get the bounding box of the structure.ModifierConstructorDescriptionAsyncStructureGenerateEvent
(World world, boolean async, AsyncStructureGenerateEvent.Cause cause, Structure structure, BoundingBox boundingBox, int chunkX, int chunkZ) AsyncStructureSpawnEvent
(World world, Structure structure, BoundingBox boundingBox, int chunkX, int chunkZ) -
Uses of BoundingBox in org.bukkit.util
Modifier and TypeMethodDescriptionBoundingBox.clone()
Creates a copy of this bounding box.BoundingBox.copy
(BoundingBox other) Copies another bounding box.static BoundingBox
BoundingBox.deserialize
(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
(Vector direction) Expands this bounding box in the specified direction.BoundingBox.intersection
(BoundingBox other) Resizes this bounding box to represent the intersection of this and the given bounding box.static BoundingBox
Creates a new 1x1x1 sized bounding box containing the given block.static BoundingBox
Creates a new bounding box using the coordinates of the given blocks as corners.static BoundingBox
Creates a new bounding box using the given center and extents.static BoundingBox
Creates a new bounding box using the coordinates of the given locations as corners.static BoundingBox
Creates a new bounding box using the given center and extents.static 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
(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.Modifier and TypeMethodDescriptionVoxelShape.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.Modifier and TypeMethodDescriptionboolean
BoundingBox.contains
(BoundingBox other) Checks if this bounding box fully contains the given bounding box.BoundingBox.copy
(BoundingBox other) Copies another bounding box.BoundingBox.intersection
(BoundingBox other) Resizes this bounding box to represent the intersection of this and the given bounding box.boolean
BoundingBox.overlaps
(BoundingBox other) Checks if this bounding box overlaps with the given bounding box.boolean
VoxelShape.overlaps
(BoundingBox other) Checks if the given bounding box intersects this block shape.BoundingBox.union
(BoundingBox other) Expands this bounding box to contain both this and the given bounding box.