mirror of
https://github.com/GTNewHorizons/Mantle.git
synced 2026-11-20 12:09:44 +00:00
26 lines
787 B
Java
26 lines
787 B
Java
package slimeknights.mantle.pulsar.debug;
|
|
|
|
import com.google.common.eventbus.Subscribe;
|
|
import slimeknights.mantle.pulsar.internal.logging.ILogger;
|
|
import slimeknights.mantle.pulsar.internal.logging.LogManager;
|
|
import slimeknights.mantle.pulsar.pulse.Pulse;
|
|
import net.minecraftforge.fml.common.Loader;
|
|
|
|
/**
|
|
* 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) {
|
|
log.info("Received event: " + evt);
|
|
}
|
|
|
|
}
|