Class VehicleMoveEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.vehicle.VehicleEvent
org.bukkit.event.vehicle.VehicleMoveEvent
-
Nested Class Summary
Nested classes/interfaces inherited from class Event
Event.Result -
Field Summary
Fields inherited from class VehicleEvent
vehicle -
Constructor Summary
ConstructorsConstructorDescriptionVehicleMoveEvent(@NotNull Vehicle vehicle, @NotNull Location from, @NotNull Location to) -
Method Summary
Modifier and TypeMethodDescription@NotNull LocationgetFrom()Get the previous position.static @NotNull HandlerList@NotNull HandlerList@NotNull LocationgetTo()Get the next position.Methods inherited from class VehicleEvent
getVehicleMethods inherited from class Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
VehicleMoveEvent
-
-
Method Details
-
getFrom
Get the previous position.- Returns:
- Old position.
- Since:
- 1.0.0
-
getTo
Get the next position.- Returns:
- New position.
- Since:
- 1.0.0
-
getHandlers
- Specified by:
getHandlersin classEvent- Since:
- 1.1.0
-
getHandlerList
- Since:
- 1.1.0
-