Class VehicleMoveEvent


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

      • VehicleMoveEvent

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

      • 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.
      • getHandlerList

        @NotNull
        public static @NotNull HandlerList getHandlerList()