public class EventManager
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
fire(Event event) |
static EventManager |
get() |
static EventManager |
get(java.lang.String identifier) |
<E extends Event> |
register(Subscriber<E> subscriber) |
<S extends Subscriber> |
unregister(S subscriber) |
public static EventManager get()
public static EventManager get(java.lang.String identifier)
public void fire(Event event)
public <E extends Event> void register(Subscriber<E> subscriber)
public <S extends Subscriber> void unregister(S subscriber)