public final class WorldObjectCollisionEvent extends Event
MovableWorldObject collides with a set of
BoundingBox objects in the world. Most likely, the object in question is
an Entity or a Particle and the list of bounding boxes comes
from the surrounding Tile objects in the world. This event cannot be
cancelled.| Modifier and Type | Field and Description |
|---|---|
java.util.List<BoundingBox> |
boundingBoxes |
BoundingBox |
entityBoundingBox |
BoundingBox |
entityBoundingBoxWithMotion |
MovableWorldObject |
object |
| Constructor and Description |
|---|
WorldObjectCollisionEvent(MovableWorldObject object,
BoundingBox entityBoundingBox,
BoundingBox entityBoundingBoxWithMotion,
java.util.List<BoundingBox> boundingBoxes) |
public final MovableWorldObject object
public final BoundingBox entityBoundingBox
public final BoundingBox entityBoundingBoxWithMotion
public final java.util.List<BoundingBox> boundingBoxes
public WorldObjectCollisionEvent(MovableWorldObject object, BoundingBox entityBoundingBox, BoundingBox entityBoundingBoxWithMotion, java.util.List<BoundingBox> boundingBoxes)