| Constructor and Description |
|---|
EventBinder(java.util.Optional<java.lang.Class<E>> clazz) |
| Modifier and Type | Method and Description |
|---|---|
EventBus.EventBinder<E> |
after(java.lang.String name)
Sets the event to occur after another event with given name.
|
EventBus.EventBinder<E> |
before(java.lang.String name)
Sets the event to occur before another event with given name.
|
EventListenerHandle<T> |
bind(EventListener<E> list)
Binds the event to the
EventBus, finalizing all modifiers on the event. |
EventBus.EventBinder<E> |
withName(java.lang.String name)
Sets the event to have a name.
|
EventBus.EventBinder<E> |
withPriority(int priority)
Sets the event's numeric priority.
|
public EventBinder(java.util.Optional<java.lang.Class<E>> clazz)
public EventBus.EventBinder<E> withPriority(int priority)
priority - An integer. The higher the number, the higher the priority.public EventBus.EventBinder<E> withName(java.lang.String name)
name - The event name.public EventBus.EventBinder<E> before(java.lang.String name)
name - The other event namepublic EventBus.EventBinder<E> after(java.lang.String name)
name - The other event namepublic EventListenerHandle<T> bind(EventListener<E> list)
EventBus, finalizing all modifiers on the event.list - Event listener