Class WorldObjectCollisionEvent
java.lang.Object
de.ellpeck.rockbottom.api.event.Event
de.ellpeck.rockbottom.api.event.impl.WorldObjectCollisionEvent
This event is fired when a
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.-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal List<BoundingBox>final BoundingBoxfinal BoundingBoxfinal MovableWorldObject -
Constructor Summary
ConstructorsConstructorDescriptionWorldObjectCollisionEvent(MovableWorldObject object, BoundingBox entityBoundingBox, BoundingBox entityBoundingBoxWithMotion, List<BoundingBox> boundingBoxes) -
Method Summary
-
Field Details
-
object
-
entityBoundingBox
-
entityBoundingBoxWithMotion
-
boundingBoxes
-
-
Constructor Details
-
WorldObjectCollisionEvent
public WorldObjectCollisionEvent(MovableWorldObject object, BoundingBox entityBoundingBox, BoundingBox entityBoundingBoxWithMotion, List<BoundingBox> boundingBoxes)
-