Files
ForgeMultipart/codechicken/multipart/minecraft/MinecraftMultipartMod.java
T

26 lines
892 B
Java
Raw Normal View History

2013-05-20 17:09:57 +10:00
package codechicken.multipart.minecraft;
import net.minecraftforge.common.MinecraftForge;
import codechicken.lib.packet.PacketCustom;
import cpw.mods.fml.common.FMLCommonHandler;
2013-05-20 17:09:57 +10:00
import cpw.mods.fml.common.Mod;
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
{
@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());
PacketCustom.assignHandler(this, new McMultipartSPH());
if(FMLCommonHandler.instance().getSide().isClient())
PacketCustom.assignHandler(this, new McMultipartCPH());
2013-05-20 17:09:57 +10:00
}
}