Class VehicleMoveEvent


public class VehicleMoveEvent extends VehicleEvent
Raised when a vehicle moves.
Since:
1.0.0
  • Constructor Details

    • VehicleMoveEvent

      @Internal public VehicleMoveEvent(@NotNull @NotNull Vehicle vehicle, @NotNull @NotNull Location from, @NotNull @NotNull Location to)
  • Method Details

    • getFrom

      @NotNull public @NotNull Location getFrom()
      Get the previous position.
      Returns:
      Old position.
      Since:
      1.0.0
    • getTo

      @NotNull public @NotNull Location getTo()
      Get the next position.
      Returns:
      New position.
      Since:
      1.0.0
    • getHandlers

      @NotNull public @NotNull HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
      Since:
      1.1.0
    • getHandlerList

      @NotNull public static @NotNull HandlerList getHandlerList()
      Since:
      1.1.0