Package | Description |
---|---|
org.bukkit |
The root package of the Bukkit API, contains generalized API classes.
|
org.bukkit.block |
Classes used to manipulate the voxels in a
world ,
including special states. |
org.bukkit.entity |
Interfaces for non-voxel objects that can exist in a
world , including all players, monsters, projectiles, etc. |
org.bukkit.util |
Multi and single purpose classes to facilitate various programmatic
concepts.
|
Modifier and Type | Method and Description |
---|---|
@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<Entity> filter)
Returns a list of entities within the given bounding box.
|
Modifier and Type | Method and Description |
---|---|
@NotNull BoundingBox |
Block.getBoundingBox()
Gets the approximate bounding box for this block.
|
Modifier and Type | Method and Description |
---|---|
@NotNull BoundingBox |
Entity.getBoundingBox()
Gets the entity's current bounding box.
|
Modifier and Type | Method and Description |
---|---|
@NotNull BoundingBox |
BoundingBox.clone()
Creates a copy of this bounding box.
|
@NotNull BoundingBox |
BoundingBox.copy(@NotNull BoundingBox other)
Copies another bounding box.
|
static @NotNull BoundingBox |
BoundingBox.deserialize(@NotNull Map<String,Object> args) |
@NotNull BoundingBox |
BoundingBox.expand(@NotNull BlockFace blockFace,
double expansion)
Expands this bounding box in the direction specified by the given block
face.
|
@NotNull BoundingBox |
BoundingBox.expand(double expansion)
Expands this bounding box uniformly by the given value in all directions.
|
@NotNull BoundingBox |
BoundingBox.expand(double x,
double y,
double z)
Expands this bounding box uniformly by the given values in both positive
and negative directions.
|
@NotNull BoundingBox |
BoundingBox.expand(double dirX,
double dirY,
double dirZ,
double expansion)
Expands this bounding box in the specified direction.
|
@NotNull BoundingBox |
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.
|
@NotNull BoundingBox |
BoundingBox.expand(@NotNull Vector expansion)
Expands this bounding box uniformly by the given values in both positive
and negative directions.
|
@NotNull BoundingBox |
BoundingBox.expand(@NotNull Vector direction,
double expansion)
Expands this bounding box in the specified direction.
|
@NotNull BoundingBox |
BoundingBox.expandDirectional(double dirX,
double dirY,
double dirZ)
Expands this bounding box in the specified direction.
|
@NotNull BoundingBox |
BoundingBox.expandDirectional(@NotNull Vector direction)
Expands this bounding box in the specified direction.
|
@NotNull BoundingBox |
BoundingBox.intersection(@NotNull BoundingBox other)
Resizes this bounding box to represent the intersection of this and the
given bounding box.
|
static @NotNull BoundingBox |
BoundingBox.of(@NotNull Block block)
Creates a new 1x1x1 sized bounding box containing the given block.
|
static @NotNull BoundingBox |
BoundingBox.of(@NotNull Block corner1,
@NotNull Block corner2)
Creates a new bounding box using the coordinates of the given blocks as
corners.
|
static @NotNull BoundingBox |
BoundingBox.of(@NotNull Location center,
double x,
double y,
double z)
Creates a new bounding box using the given center and extents.
|
static @NotNull BoundingBox |
BoundingBox.of(@NotNull Location corner1,
@NotNull Location corner2)
Creates a new bounding box using the coordinates of the given locations
as corners.
|
static @NotNull BoundingBox |
BoundingBox.of(@NotNull Vector center,
double x,
double y,
double z)
Creates a new bounding box using the given center and extents.
|
static @NotNull BoundingBox |
BoundingBox.of(@NotNull Vector corner1,
@NotNull Vector corner2)
Creates a new bounding box using the coordinates of the given vectors as
corners.
|
@NotNull BoundingBox |
BoundingBox.resize(double x1,
double y1,
double z1,
double x2,
double y2,
double z2)
Resizes this bounding box.
|
@NotNull BoundingBox |
BoundingBox.shift(double shiftX,
double shiftY,
double shiftZ)
Shifts this bounding box by the given amounts.
|
@NotNull BoundingBox |
BoundingBox.shift(@NotNull Location shift)
Shifts this bounding box by the given amounts.
|
@NotNull BoundingBox |
BoundingBox.shift(@NotNull Vector shift)
Shifts this bounding box by the given amounts.
|
@NotNull BoundingBox |
BoundingBox.union(@NotNull BoundingBox other)
Expands this bounding box to contain both this and the given bounding
box.
|
@NotNull BoundingBox |
BoundingBox.union(double posX,
double posY,
double posZ)
Expands this bounding box to contain (or border) the specified position.
|
@NotNull BoundingBox |
BoundingBox.union(@NotNull Location position)
Expands this bounding box to contain (or border) the specified position.
|
@NotNull BoundingBox |
BoundingBox.union(@NotNull Vector position)
Expands this bounding box to contain (or border) the specified position.
|
Modifier and Type | Method and Description |
---|---|
boolean |
BoundingBox.contains(@NotNull BoundingBox other)
Checks if this bounding box fully contains the given bounding box.
|
@NotNull BoundingBox |
BoundingBox.copy(@NotNull BoundingBox other)
Copies another bounding box.
|
@NotNull BoundingBox |
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.
|
@NotNull BoundingBox |
BoundingBox.union(@NotNull BoundingBox other)
Expands this bounding box to contain both this and the given bounding
box.
|
Copyright © 2021. All rights reserved.