Class JourneyMapEvent

java.lang.Object
journeymap.api.v2.common.event.impl.JourneyMapEvent
Direct Known Subclasses:
ClientEvent, CommonEvent, WaypointGroupEvent, WaypointGroupTransferEvent

public abstract class JourneyMapEvent extends Object
  • Field Details

    • timestamp

      public final long timestamp
      System millis when event was created.
  • Constructor Details

    • JourneyMapEvent

      protected JourneyMapEvent(boolean cancellable)
  • Method Details

    • isCancelled

      public boolean isCancelled()
      Whether the event has been cancelled.
      Returns:
      true if cancelled
    • cancel

      public void cancel()
      Cancels the event only if the Type is cancellable.
    • isCancellable

      public boolean isCancellable()
      Whether the event is cancellable.
      Returns:
      true if cancellable.