Annotation Interface EventHandler


@Retention(RUNTIME) @Target(METHOD) public @interface EventHandler
All event listener methods must be annotated with this, or will be ignored
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Setting option to true will allow your listener method to receive cancelled events
  • Element Details

    • receiveCancelled

      boolean receiveCancelled
      Setting option to true will allow your listener method to receive cancelled events
      Returns:
      Whether this event is cancelled or not
      Default:
      false