package com.myname.mymodid; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.SidedProxy; import cpw.mods.fml.common.event.*; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; @Mod(modid = Tags.MODID, version = Tags.VERSION, name = Tags.MODNAME, acceptedMinecraftVersions = "[1.7.10]") public class MyMod { private static Logger LOG = LogManager.getLogger(Tags.MODID); @SidedProxy(clientSide= Tags.GROUPNAME + ".ClientProxy", serverSide=Tags.GROUPNAME + ".CommonProxy") public static CommonProxy proxy; @Mod.EventHandler // preInit "Run before anything else. Read your config, create blocks, items, // etc, and register them with the GameRegistry." public void preInit(FMLPreInitializationEvent event) { proxy.preInit(event); } @Mod.EventHandler // load "Do your mod setup. Build whatever data structures you care about. Register recipes." public void init(FMLInitializationEvent event) { proxy.init(event); } @Mod.EventHandler // postInit "Handle interaction with other mods, complete your setup based on this." public void postInit(FMLPostInitializationEvent event) { proxy.postInit(event); } @Mod.EventHandler public void serverAboutToStart(FMLServerAboutToStartEvent event) { proxy.serverAboutToStart(event); } @Mod.EventHandler // register server commands in this event handler public void serverStarting(FMLServerStartingEvent event) { proxy.serverStarting(event); } @Mod.EventHandler public void serverStarted(FMLServerStartedEvent event) { proxy.serverStarted(event); } @Mod.EventHandler public void serverStopping(FMLServerStoppingEvent event) { proxy.serverStopping(event); } @Mod.EventHandler public void serverStopped(FMLServerStoppedEvent event) { proxy.serverStopped(event); } public static void debug(String message) { LOG.debug(message); } public static void info(String message) { LOG.info(message); } public static void warn(String message) { LOG.warn(message); } public static void error(String message) { LOG.error(message); } }