T - -Describe me-public class SidedEventBus<T extends CancelableEvent> extends CancelableEventBus<T>
EventBus that can differentiate NetworkTargets
and allows registration of handlers that only listen on a specific
NetworkTarget.Side. Remember to reduce the scope of any
SidedEventBus.SidedEvent that was sent over the network!| Modifier and Type | Class and Description |
|---|---|
static interface |
SidedEventBus.NetworkEventProcessor |
static interface |
SidedEventBus.SidedEvent
An event that specifies a
NetworkTarget. |
protected static class |
SidedEventBus.SidedEventListener<E extends T,T> |
EventBus.EventBinder<E extends T>, EventBus.EventListenerNode, EventBus.TypedEventListener<E extends T,T>PRIORITY_DEFAULT, PRIORITY_HIGH, PRIORITY_LOW, unsortedListeners| Constructor and Description |
|---|
SidedEventBus(SidedEventBus.NetworkEventProcessor eventProcessor) |
| Modifier and Type | Method and Description |
|---|---|
void |
publish(T event)
Publishes an event by calling all of the registered listeners.
|
buildCache, clear, count, getSortedListeners, invalidateCache, isEmpty, on, on, removepublic SidedEventBus(SidedEventBus.NetworkEventProcessor eventProcessor)
public void publish(T event)
EventBuspublish in class CancelableEventBus<T extends CancelableEvent>event - event to be published