Package org.omegazero.common.eventbus
Annotation Interface SubscribeEvent
Annotation required on methods to be identified as a valid
EventBus
subscriber event handler method.- Since:
- 2.1
-
Nested Class Summary
Nested Classes -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionAn optional priority parameter.int
An alternative numeric value for the priority parameter.
-
Element Details
-
priority
SubscribeEvent.Priority priorityAn optional priority parameter. Default:SubscribeEvent.Priority.NORMAL
.- Returns:
- The priority value
- Default:
- NORMAL
-
priorityNum
int priorityNumAn alternative numeric value for the priority parameter. If this value is set to anything other than the numeric value ofSubscribeEvent.Priority.NORMAL
(the default), it takes precendence overpriority()
; otherwise, the numeric value ofpriority()
is used.- Returns:
- The custom numeric priority
- Since:
- 2.11.0
- Default:
- 1073741823
-