Package org.bukkit.event.vehicle
Class VehicleMoveEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.vehicle.VehicleEvent
org.bukkit.event.vehicle.VehicleMoveEvent
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
ConstructorsConstructorDescriptionVehicleMoveEvent
(@NotNull Vehicle vehicle, @NotNull Location from, @NotNull Location to) -
Method Summary
Modifier and TypeMethodDescription@NotNull Location
getFrom()
Get the previous position.static @NotNull HandlerList
@NotNull HandlerList
@NotNull Location
getTo()
Get the next position.Methods inherited from class org.bukkit.event.vehicle.VehicleEvent
getVehicle
Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
VehicleMoveEvent
-
-
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
-