Files
Opis/src/main/java/mcp/mobius/opis/events/OpisServerEventHandler.java
T
ProfMobius d8e699fd2a Removed the old tick handler profiler and structure.
Tick handlers are now sent as Events and redirected to the right Swing tab.
2014-05-11 16:49:34 +02:00

40 lines
1.1 KiB
Java

package mcp.mobius.opis.events;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.entity.item.EntityItem;
import net.minecraftforge.event.entity.EntityEvent;
public class OpisServerEventHandler {
/*
public static boolean printEntityTrace = false;
public static boolean printEntityFull = false;
@SubscribeEvent
@SideOnly(Side.SERVER)
public void onEntityConstructed(EntityEvent.EntityConstructing event) {
if (printEntityTrace){
if (event.entity instanceof EntityItem){
System.out.printf("Entity %s of type %s [ %s ] created\n", event.entity.getEntityId(), event.entity.getClass().getName(), ((EntityItem)(event.entity)).getEntityItem().getDisplayName());
} else {
System.out.printf("Entity %s of type %s created\n", event.entity.getEntityId(), event.entity.getClass().getName());
}
if (printEntityFull){
try{
throw new RuntimeException();
} catch (Exception e) {
e.printStackTrace();
}
}
}
}
*/
}