2013-05-20 17:09:57 +10:00
|
|
|
package codechicken.multipart.minecraft;
|
|
|
|
|
|
|
|
|
|
import net.minecraftforge.common.MinecraftForge;
|
2013-07-24 15:32:46 +10:00
|
|
|
import codechicken.lib.packet.PacketCustom;
|
2013-06-06 17:25:24 +10:00
|
|
|
import cpw.mods.fml.common.FMLCommonHandler;
|
2013-05-20 17:09:57 +10:00
|
|
|
import cpw.mods.fml.common.Mod;
|
2013-05-23 16:26:00 +10:00
|
|
|
import cpw.mods.fml.common.Mod.Instance;
|
2013-05-20 17:09:57 +10:00
|
|
|
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
|
|
|
|
|
|
2014-04-07 23:14:31 +10:00
|
|
|
@Mod(modid = "McMultipart", acceptedMinecraftVersions="[1.7.2]")
|
2013-05-20 17:09:57 +10:00
|
|
|
public class MinecraftMultipartMod
|
|
|
|
|
{
|
2013-05-23 16:26:00 +10:00
|
|
|
@Instance("McMultipart")
|
|
|
|
|
public static MinecraftMultipartMod instance;
|
|
|
|
|
|
2013-07-16 13:08:45 +10:00
|
|
|
@Mod.EventHandler
|
2013-05-20 17:09:57 +10:00
|
|
|
public void preInit(FMLPreInitializationEvent event)
|
|
|
|
|
{
|
|
|
|
|
new Content().init();
|
|
|
|
|
MinecraftForge.EVENT_BUS.register(new EventHandler());
|
2013-05-23 16:26:00 +10:00
|
|
|
PacketCustom.assignHandler(this, new McMultipartSPH());
|
2013-07-24 15:32:46 +10:00
|
|
|
if(FMLCommonHandler.instance().getSide().isClient())
|
2013-06-06 17:25:24 +10:00
|
|
|
PacketCustom.assignHandler(this, new McMultipartCPH());
|
|
|
|
|
|
2013-05-20 17:09:57 +10:00
|
|
|
}
|
|
|
|
|
}
|