org.bukkit.event.vehicle
Class VehicleMoveEvent

java.lang.Object
  extended by org.bukkit.event.Event
      extended by org.bukkit.event.vehicle.VehicleEvent
          extended by org.bukkit.event.vehicle.VehicleMoveEvent

public class VehicleMoveEvent
extends VehicleEvent

Raised when a vehicle moves.


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
VehicleMoveEvent(Vehicle vehicle, Location from, Location to)
           
 
Method Summary
 Location getFrom()
          Get the previous position.
static HandlerList getHandlerList()
           
 HandlerList getHandlers()
           
 Location getTo()
          Get the next position.
 
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

VehicleMoveEvent

public VehicleMoveEvent(Vehicle vehicle,
                        Location from,
                        Location to)
Method Detail

getFrom

public Location getFrom()
Get the previous position.

Returns:
Old position.

getTo

public Location getTo()
Get the next position.

Returns:
New position.

getHandlers

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

getHandlerList

public static HandlerList getHandlerList()


Copyright © 2013. All Rights Reserved.