Package org.bukkit.event.vehicle
Class VehicleBlockCollisionEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.vehicle.VehicleEvent
org.bukkit.event.vehicle.VehicleCollisionEvent
org.bukkit.event.vehicle.VehicleBlockCollisionEvent
Raised when a vehicle collides with a block.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Field Summary
Fields inherited from class org.bukkit.event.vehicle.VehicleEvent
vehicle
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetBlock()
Gets the block the vehicle collided withGets velocity at which the vehicle collided with the blockMethods inherited from class org.bukkit.event.vehicle.VehicleCollisionEvent
getHandlerList, getHandlers
Methods inherited from class org.bukkit.event.vehicle.VehicleEvent
getVehicle
Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
Method Details
-
getVelocity
Gets velocity at which the vehicle collided with the block- Returns:
- pre-collision moving velocity
-
getBlock
Gets the block the vehicle collided with- Returns:
- the block the vehicle collided with
-