public class EntityBoundingBox extends BoundingBox
maxCorner, minCorner| Constructor and Description |
|---|
EntityBoundingBox(double horizSize,
double vertSize) |
EntityBoundingBox(double width,
double vertSize,
double depth)
Creates an instance with the given size.
|
| Modifier and Type | Method and Description |
|---|---|
org.bukkit.util.Vector |
getSize()
Returns the displacement of the maximum corner from the minimum corner.
|
void |
setCenter(double x,
double y,
double z)
Moves this box so that its center is the given point.
|
copyOf, fromCorners, fromPositionAndSize, intersects, intersectspublic EntityBoundingBox(double horizSize,
double vertSize)
public EntityBoundingBox(double width,
double vertSize,
double depth)
width - the size on the X axisvertSize - the size on the Y axisdepth - the size on the Z axispublic org.bukkit.util.Vector getSize()
BoundingBoxgetSize in class BoundingBoxpublic void setCenter(double x,
double y,
double z)
x - the center X coordinatey - the center Y coordinatez - the center Z coordinateCopyright © 2021. All rights reserved.