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
-
public class VehicleBlockCollisionEvent extends VehicleCollisionEvent
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
Constructors Constructor Description VehicleBlockCollisionEvent(Vehicle vehicle, Block block)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Block
getBlock()
Gets the block the vehicle collided withstatic HandlerList
getHandlerList()
HandlerList
getHandlers()
-
Methods inherited from class org.bukkit.event.vehicle.VehicleEvent
getVehicle
-
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
-
-
-
Method Detail
-
getBlock
@NotNull public Block getBlock()
Gets the block the vehicle collided with- Returns:
- the block the vehicle collided with
-
getHandlers
@NotNull public HandlerList getHandlers()
- Specified by:
getHandlers
in classEvent
-
getHandlerList
@NotNull public static HandlerList getHandlerList()
-
-