Class VehicleMoveEvent


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

    • VehicleMoveEvent

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

    • 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:
      getHandlers in class Event
    • getHandlerList

      @NotNull public static HandlerList getHandlerList()