@Target(value={METHOD,FIELD})
@Retention(value=RUNTIME)
public @interface EventHandler
Runnable or a Consumer.events() has to be specified.| Modifier and Type | Optional Element and Description |
|---|---|
java.lang.Class<?>[] |
events
The events the handler listens to when no event parameter is present.
|
boolean |
handleCancelled
If the handler should be called even if the event was cancelled by a previous handler.
|
int |
priority
The priority of the handler.
|
public abstract int priority