public void register(IEventListener listener, EventBus bus, Class<? extends Event> clazz) { try { clazz.newInstance().getListenerList().register(getBusID(bus), EventPriority.NORMAL, listener); } catch (Exception e) { } }
public void unregister(IEventListener listener, EventBus bus, Class<? extends Event> clazz) { try { clazz.newInstance().getListenerList().unregister(getBusID(bus), listener); } catch (Exception e) { } }
@Override public void visitUnknownListener(IEventListener listener) { writer.format("\t\tUnknown listener: %s (%s)\n", listener, listener.getClass()); }