Class BoundingBox

java.lang.Object
org.bukkit.util.BoundingBox
All Implemented Interfaces:
Cloneable, ConfigurationSerializable

public class BoundingBox extends Object implements Cloneable, ConfigurationSerializable
A mutable axis aligned bounding box (AABB).

This basically represents a rectangular box (specified by minimum and maximum corners) that can for example be used to describe the position and extents of an object (such as an entity, block, or rectangular region) in 3D space. Its edges and faces are parallel to the axes of the cartesian coordinate system.

The bounding box may be degenerate (one or more sides having the length 0).

Because bounding boxes are mutable, storing them long term may be dangerous if they get modified later. If you want to keep around a bounding box, it may be wise to call clone() in order to get a copy.