org.bukkit.event.vehicle
Class VehicleBlockCollisionEvent

java.lang.Object
  extended by org.bukkit.event.Event
      extended by org.bukkit.event.vehicle.VehicleEvent
          extended by org.bukkit.event.vehicle.VehicleCollisionEvent
              extended by 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
VehicleBlockCollisionEvent(Vehicle vehicle, Block block)
           
 
Method Summary
 Block getBlock()
          Gets the block the vehicle collided with
static HandlerList getHandlerList()
           
 HandlerList getHandlers()
           
 
Methods inherited from class org.bukkit.event.vehicle.VehicleEvent
getVehicle
 
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VehicleBlockCollisionEvent

public VehicleBlockCollisionEvent(Vehicle vehicle,
                                  Block block)
Method Detail

getBlock

public Block getBlock()
Gets the block the vehicle collided with

Returns:
the block the vehicle collided with

getHandlers

public HandlerList getHandlers()
Specified by:
getHandlers in class Event

getHandlerList

public static HandlerList getHandlerList()


Copyright © 2013. All Rights Reserved.