Package org.bukkit.event.vehicle
Class VehicleMoveEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.vehicle.VehicleEvent
org.bukkit.event.vehicle.VehicleMoveEvent
public class VehicleMoveEvent extends VehicleEvent
Raised when a vehicle moves.
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
Constructors Constructor Description VehicleMoveEvent(Vehicle vehicle, Location from, Location to)
-
Method Summary
Modifier and Type Method Description Location
getFrom()
Get the previous position.static HandlerList
getHandlerList()
HandlerList
getHandlers()
Location
getTo()
Get the next position.
-
Constructor Details
-
Method Details
-
getFrom
Get the previous position.- Returns:
- Old position.
-
getTo
Get the next position.- Returns:
- New position.
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-