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
-
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 VehicleMoveEvent(Vehicle vehicle, Location from, Location to)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LocationgetFrom()Get the previous position.static HandlerListgetHandlerList()HandlerListgetHandlers()LocationgetTo()Get the next position.-
Methods inherited from class org.bukkit.event.vehicle.VehicleEvent
getVehicle
-
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
-
-
-
Method Detail
-
getFrom
@NotNull public Location getFrom()
Get the previous position.- Returns:
- Old position.
-
getTo
@NotNull public Location getTo()
Get the next position.- Returns:
- New position.
-
getHandlers
@NotNull public HandlerList getHandlers()
- Specified by:
getHandlersin classEvent
-
getHandlerList
@NotNull public static HandlerList getHandlerList()
-
-