// Path: src/main/java/com/m4thg33k/tombmanygraves/TombManyGraves.java
// @Mod(modid = Names.MODID, name = Names.MODNAME, version = Names.VERSION, dependencies = TombManyGraves.DEPENDENCIES)
// public class TombManyGraves {
// 
// 	public static final String DEPENDENCIES = "required-after:forge@[14.23.3.2655,)";
// 	private static Set<ASMData> moduleASM;
// 
// 	@Mod.Instance
// 	public static TombManyGraves INSTANCE = new TombManyGraves();
// 
// 	@SidedProxy(clientSide = "com.m4thg33k.tombmanygraves.proxy.ClientProxy", serverSide = "com.m4thg33k.tombmanygraves.proxy.ServerProxy")
// 	public static CommonProxy proxy;
// 
// 	@Mod.EventHandler
// 	public void preInit(FMLPreInitializationEvent e) {
// 		proxy.preinit(e);
// 		moduleASM = e.getAsmData().getAll(GraveRegistry.class.getName());
// 	}
// 
// 	@Mod.EventHandler
// 	public void init(FMLInitializationEvent e) {
// 		proxy.init(e);
// 		for (ASMData data : moduleASM) {
// 			try {
// 				Class<?> c = Class.forName(data.getClassName());
// 				if (IGraveInventory.class.isAssignableFrom(c)) {
// 					Map<String, Object> annotation = data.getAnnotationInfo();
// 					String reqMod = (String) annotation.get("reqMod");
// 					if (reqMod == null || Loader.isModLoaded(reqMod)){
// 						GraveInventoryManager.getInstance().registerListener((IGraveInventory) c.newInstance(), annotation);
// 					}
// 				}
// 			} catch (Exception ex) {
// 				ex.printStackTrace();
// 			}
// 		}
// 	}
// 
// 	@Mod.EventHandler
// 	public void postinit(FMLPostInitializationEvent e) {
// 		proxy.postinit(e);
// 
// 		// Make sure to finalize the listeners so the mod actually works...
// 		GraveInventoryManager.getInstance().finalizeListeners();
// 	}
// 
// 	@Mod.EventHandler
// 	public void serverLoad(FMLServerStartingEvent event) {
// 		ModCommands.initCommands(event);
// 	}
// }
// 
// Path: src/main/java/com/m4thg33k/tombmanygraves/util/LogHelper.java
// public class LogHelper {
// 	
// 	private static final Logger LOGGER = LogManager.getLogger(Names.MODID);
// 
//     public static void log(Level logLevel, Object object)
//     {
//     	LOGGER.log(logLevel, "[" + Names.MODNAME + "]: " + String.valueOf(object));
//     }
// 
//     public static void all(Object object)
//     {
//         log(Level.ALL, object);
//     }
// 
//     public static void debug(Object object)
//     {
//         log(Level.DEBUG, object);
//     }
// 
//     public static void error(Object object)
//     {
//         log(Level.ERROR, object);
//     }
// 
//     public static void fatal(Object object)
//     {
//         log(Level.FATAL, object);
//     }
// 
//     public static void info(Object object)
//     {
//         log(Level.INFO, object);
//     }
// 
//     public static void off(Object object)
//     {
//         log(Level.OFF, object);
//     }
// 
//     public static void trace(Object object)
//     {
//         log(Level.TRACE, object);
//     }
// 
//     public static void warn(Object object)
//     {
//         log(Level.WARN, object);
//     }
// }


import com.m4thg33k.tombmanygraves.TombManyGraves;
import com.m4thg33k.tombmanygraves.util.LogHelper;
import io.netty.buffer.ByteBuf;
import net.minecraft.client.network.NetHandlerPlayClient;
import net.minecraft.network.NetHandlerPlayServer;
package com.m4thg33k.tombmanygraves.network;



public class GravePosTogglePacket extends BaseThreadsafePacket{

    public GravePosTogglePacket()
    {

    }

    @Override
    public void handleClientSafe(NetHandlerPlayClient netHandler) {
        TombManyGraves.proxy.toggleGravePositionRendering();
    }

    @Override
    public void handleServerSafe(NetHandlerPlayServer netHandler) {

// Path: src/main/java/com/m4thg33k/tombmanygraves/TombManyGraves.java
// @Mod(modid = Names.MODID, name = Names.MODNAME, version = Names.VERSION, dependencies = TombManyGraves.DEPENDENCIES)
// public class TombManyGraves {
// 
// 	public static final String DEPENDENCIES = "required-after:forge@[14.23.3.2655,)";
// 	private static Set<ASMData> moduleASM;
// 
// 	@Mod.Instance
// 	public static TombManyGraves INSTANCE = new TombManyGraves();
// 
// 	@SidedProxy(clientSide = "com.m4thg33k.tombmanygraves.proxy.ClientProxy", serverSide = "com.m4thg33k.tombmanygraves.proxy.ServerProxy")
// 	public static CommonProxy proxy;
// 
// 	@Mod.EventHandler
// 	public void preInit(FMLPreInitializationEvent e) {
// 		proxy.preinit(e);
// 		moduleASM = e.getAsmData().getAll(GraveRegistry.class.getName());
// 	}
// 
// 	@Mod.EventHandler
// 	public void init(FMLInitializationEvent e) {
// 		proxy.init(e);
// 		for (ASMData data : moduleASM) {
// 			try {
// 				Class<?> c = Class.forName(data.getClassName());
// 				if (IGraveInventory.class.isAssignableFrom(c)) {
// 					Map<String, Object> annotation = data.getAnnotationInfo();
// 					String reqMod = (String) annotation.get("reqMod");
// 					if (reqMod == null || Loader.isModLoaded(reqMod)){
// 						GraveInventoryManager.getInstance().registerListener((IGraveInventory) c.newInstance(), annotation);
// 					}
// 				}
// 			} catch (Exception ex) {
// 				ex.printStackTrace();
// 			}
// 		}
// 	}
// 
// 	@Mod.EventHandler
// 	public void postinit(FMLPostInitializationEvent e) {
// 		proxy.postinit(e);
// 
// 		// Make sure to finalize the listeners so the mod actually works...
// 		GraveInventoryManager.getInstance().finalizeListeners();
// 	}
// 
// 	@Mod.EventHandler
// 	public void serverLoad(FMLServerStartingEvent event) {
// 		ModCommands.initCommands(event);
// 	}
// }
// 
// Path: src/main/java/com/m4thg33k/tombmanygraves/util/LogHelper.java
// public class LogHelper {
// 	
// 	private static final Logger LOGGER = LogManager.getLogger(Names.MODID);
// 
//     public static void log(Level logLevel, Object object)
//     {
//     	LOGGER.log(logLevel, "[" + Names.MODNAME + "]: " + String.valueOf(object));
//     }
// 
//     public static void all(Object object)
//     {
//         log(Level.ALL, object);
//     }
// 
//     public static void debug(Object object)
//     {
//         log(Level.DEBUG, object);
//     }
// 
//     public static void error(Object object)
//     {
//         log(Level.ERROR, object);
//     }
// 
//     public static void fatal(Object object)
//     {
//         log(Level.FATAL, object);
//     }
// 
//     public static void info(Object object)
//     {
//         log(Level.INFO, object);
//     }
// 
//     public static void off(Object object)
//     {
//         log(Level.OFF, object);
//     }
// 
//     public static void trace(Object object)
//     {
//         log(Level.TRACE, object);
//     }
// 
//     public static void warn(Object object)
//     {
//         log(Level.WARN, object);
//     }
// }


// Path: src/main/java/com/m4thg33k/tombmanygraves/network/GravePosTogglePacket.java
import com.m4thg33k.tombmanygraves.TombManyGraves;
import com.m4thg33k.tombmanygraves.util.LogHelper;
import io.netty.buffer.ByteBuf;
import net.minecraft.client.network.NetHandlerPlayClient;
import net.minecraft.network.NetHandlerPlayServer;

package com.m4thg33k.tombmanygraves.network;



public class GravePosTogglePacket extends BaseThreadsafePacket{

    public GravePosTogglePacket()
    {

    }

    @Override
    public void handleClientSafe(NetHandlerPlayClient netHandler) {
        TombManyGraves.proxy.toggleGravePositionRendering();
    }

    @Override
    public void handleServerSafe(NetHandlerPlayServer netHandler) {

        LogHelper.error("Attempting to handle rendering packet on server!");