Java 类cpw.mods.fml.common.eventhandler.IEventListener 实例源码

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