mirror of
https://github.com/GTNewHorizons/Mantle.git
synced 2026-11-26 14:53:04 +00:00
29 lines
751 B
Java
29 lines
751 B
Java
package mantle.pulsar.debug;
|
|
|
|
import mantle.pulsar.internal.logging.ILogger;
|
|
import mantle.pulsar.internal.logging.LogManager;
|
|
import mantle.pulsar.pulse.Pulse;
|
|
import net.minecraftforge.fml.common.Loader;
|
|
|
|
import com.google.common.eventbus.Subscribe;
|
|
|
|
/**
|
|
* Debug Pulse to 'eavesdrop' on the PulseManager event bus traffic.
|
|
*
|
|
* @author Arkan <[email protected]>
|
|
*/
|
|
@SuppressWarnings("unused")
|
|
@Pulse(id = "EventSpy", description = "we iz in ur buses, monitorin ur eventz", forced = true)
|
|
public class EventSpy
|
|
{
|
|
|
|
private final ILogger log = LogManager.getLogger("EventSpy/" + Loader.instance().activeModContainer().getModId());
|
|
|
|
@Subscribe
|
|
public void receive(Object evt)
|
|
{
|
|
this.log.info("Received event: " + evt);
|
|
}
|
|
|
|
}
|