Class VehicleMoveEvent


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

      • VehicleMoveEvent

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

      • getFrom

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

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

        @NotNull
        public static HandlerList getHandlerList()