Class VehicleMoveEvent


public class VehicleMoveEvent extends VehicleEvent
Raised when a vehicle moves.
  • 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.
    • getTo

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

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

      @NotNull public static @NotNull HandlerList getHandlerList()