Class JourneyMapEvent

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

public abstract class JourneyMapEvent extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final long
    System millis when event was created.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    JourneyMapEvent(boolean cancellable)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Cancels the event only if the Type is cancellable.
    boolean
    Whether the event is cancellable.
    boolean
    Whether the event has been cancelled.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.