Class VehicleMoveEvent


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

    • VehicleMoveEvent Link icon

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

    • getFrom Link icon

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

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

      @NotNull public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getHandlerList Link icon

      @NotNull public static HandlerList getHandlerList()