Annotation Interface Event
An annotation to mark methods as being event handler methods
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanWhether the event is called async by bukkit.booleanWhether the event handler method should ignore cancelled events.booleanIf this event should be injected into the event bus.org.bukkit.event.EventPriorityThe priority of the event listener.intThe priority of the event handler method.
-
Element Details
-
async
boolean asyncWhether the event is called async by bukkit.- Returns:
- true if the event is called async
- Default:
false
-
priority
int priorityThe priority of the event handler method. The lower the value the sooner your method will be called. Default value is1000- Returns:
- The priority of the event handler method.
- Default:
1000
-
ignoreCancelled
boolean ignoreCancelledWhether the event handler method should ignore cancelled events.- Returns:
- true if the event handler method should ignore cancelled events.
- Default:
true
-
inject
boolean injectIf this event should be injected into the event bus. Setting this to true will register a new event listener in bukkit and allow theEventHandlerto listen to the event.- Returns:
- true if the event should be injected into the event bus.
- Default:
true
-
injectionPriority
org.bukkit.event.EventPriority injectionPriorityThe priority of the event listener.- Returns:
- The priority of the event listener.
- Default:
NORMAL
-