Uses of Class
org.bukkit.util.BoundingBox
Packages that use 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.Classes to facilitate world
Structure
generation.Multi and single purpose classes to facilitate various programmatic
concepts.
-
Uses of BoundingBox in org.bukkit
Methods in org.bukkit with parameters of type BoundingBoxModifier and TypeMethodDescription@NotNull Collection<Chunk> World.getIntersectingChunks(@NotNull BoundingBox box) Gets all Chunks intersecting the given BoundingBox.default @NotNull Collection<Entity> World.getNearbyEntities(@NotNull BoundingBox boundingBox) Returns a list of entities within the given bounding box.@NotNull Collection<Entity> World.getNearbyEntities(@NotNull BoundingBox boundingBox, @Nullable Predicate<? super Entity> filter) Returns a list of entities within the given bounding box.booleanRegionAccessor.hasCollisionsIn(BoundingBox boundingBox) Checks if the world collides with the given boundingbox. -
Uses of BoundingBox in org.bukkit.block
Methods in org.bukkit.block that return BoundingBoxModifier and TypeMethodDescription@NotNull BoundingBoxBlock.getBoundingBox()Gets the approximate bounding box for this block.@NotNull BoundingBoxConduit.getHuntingArea()Get aBoundingBox(relative to real-world coordinates) in which the conduit will search for hostile entities to target. -
Uses of BoundingBox in org.bukkit.entity
Methods in org.bukkit.entity that return BoundingBoxModifier and TypeMethodDescription@NotNull BoundingBoxEntity.getBoundingBox()Gets the entity's current bounding box.Methods in org.bukkit.entity with parameters of type BoundingBoxModifier and TypeMethodDescriptionbooleanEntity.wouldCollideUsing(@NotNull BoundingBox boundingBox) This checks using the given boundingbox as the entity's boundingbox if the entity would collide with anything. -
Uses of BoundingBox in org.bukkit.event.world
Methods in org.bukkit.event.world that return BoundingBoxModifier and TypeMethodDescription@NotNull BoundingBoxAsyncStructureGenerateEvent.getBoundingBox()Get the bounding box of the structure.@NotNull BoundingBoxAsyncStructureSpawnEvent.getBoundingBox()Get the bounding box of the structure.Constructors in org.bukkit.event.world with parameters of type BoundingBoxModifierConstructorDescriptionAsyncStructureGenerateEvent(@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) -
Uses of BoundingBox in org.bukkit.generator.structure
Methods in org.bukkit.generator.structure that return BoundingBoxModifier and TypeMethodDescription@NotNull BoundingBoxGeneratedStructure.getBoundingBox()Gets the bounding box of this placed structure.@NotNull BoundingBoxStructurePiece.getBoundingBox()Gets the bounding box of this structure piece. -
Uses of BoundingBox in org.bukkit.util
Methods in org.bukkit.util that return BoundingBoxModifier and TypeMethodDescription@NotNull BoundingBoxBoundingBox.clone()Creates a copy of this bounding box.@NotNull BoundingBoxBoundingBox.copy(@NotNull BoundingBox other) Copies another bounding box.static @NotNull BoundingBoxBoundingBox.deserialize(@NotNull Map<String, Object> args) @NotNull BoundingBoxBoundingBox.expand(double expansion) Expands this bounding box uniformly by the given value in all directions.@NotNull BoundingBoxBoundingBox.expand(double x, double y, double z) Expands this bounding box uniformly by the given values in both positive and negative directions.@NotNull BoundingBoxBoundingBox.expand(double dirX, double dirY, double dirZ, double expansion) Expands this bounding box in the specified direction.@NotNull BoundingBoxBoundingBox.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.@NotNull BoundingBoxExpands this bounding box in the direction specified by the given block face.@NotNull BoundingBoxExpands this bounding box uniformly by the given values in both positive and negative directions.@NotNull BoundingBoxExpands this bounding box in the specified direction.@NotNull BoundingBoxBoundingBox.expandDirectional(double dirX, double dirY, double dirZ) Expands this bounding box in the specified direction.@NotNull BoundingBoxBoundingBox.expandDirectional(@NotNull Vector direction) Expands this bounding box in the specified direction.@NotNull BoundingBoxBoundingBox.intersection(@NotNull BoundingBox other) Resizes this bounding box to represent the intersection of this and the given bounding box.static @NotNull BoundingBoxCreates a new bounding box using the given center and extents.static @NotNull BoundingBoxCreates a new bounding box using the coordinates of the given locations as corners.static @NotNull BoundingBoxCreates a new 1x1x1 sized bounding box containing the given block.static @NotNull BoundingBoxCreates a new bounding box using the coordinates of the given blocks as corners.static @NotNull BoundingBoxCreates a new bounding box using the given center and extents.static @NotNull BoundingBoxCreates a new bounding box using the coordinates of the given vectors as corners.@NotNull BoundingBoxBoundingBox.resize(double x1, double y1, double z1, double x2, double y2, double z2) Resizes this bounding box.@NotNull BoundingBoxBoundingBox.shift(double shiftX, double shiftY, double shiftZ) Shifts this bounding box by the given amounts.@NotNull BoundingBoxShifts this bounding box by the given amounts.@NotNull BoundingBoxShifts this bounding box by the given amounts.@NotNull BoundingBoxBoundingBox.union(double posX, double posY, double posZ) Expands this bounding box to contain (or border) the specified position.@NotNull BoundingBoxExpands this bounding box to contain (or border) the specified position.@NotNull BoundingBoxBoundingBox.union(@NotNull BoundingBox other) Expands this bounding box to contain both this and the given bounding box.@NotNull BoundingBoxExpands this bounding box to contain (or border) the specified position.Methods in org.bukkit.util that return types with arguments of type BoundingBoxModifier and TypeMethodDescription@NotNull Collection<BoundingBox> VoxelShape.getBoundingBoxes()Converts this shape into a collection ofBoundingBoxequivalent to the shape: a bounding box intersects with this block shape if it intersects with any of the shape's bounding boxes.Methods in org.bukkit.util with parameters of type BoundingBoxModifier and TypeMethodDescriptionbooleanBoundingBox.contains(@NotNull BoundingBox other) Checks if this bounding box fully contains the given bounding box.@NotNull BoundingBoxBoundingBox.copy(@NotNull BoundingBox other) Copies another bounding box.@NotNull BoundingBoxBoundingBox.intersection(@NotNull BoundingBox other) Resizes this bounding box to represent the intersection of this and the given bounding box.booleanBoundingBox.overlaps(@NotNull BoundingBox other) Checks if this bounding box overlaps with the given bounding box.booleanVoxelShape.overlaps(@NotNull BoundingBox other) Checks if the given bounding box intersects this block shape.@NotNull BoundingBoxBoundingBox.union(@NotNull BoundingBox other) Expands this bounding box to contain both this and the given bounding box.