package me.xtimpugz.lotrrings;

import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.SidedProxy;

import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.network.NetworkRegistry;
import me.xtimpugz.lotrrings.handlers.UIHandler;
import me.xtimpugz.lotrrings.proxies.CommonProxy;
import me.xtimpugz.lotrrings.registries.LOTRRBlocks;
import me.xtimpugz.lotrrings.registries.LOTRRItems;
import me.xtimpugz.lotrrings.registries.LOTRRTileEntities;


@Mod(modid = LOTRRings.MODID, version = LOTRRings.VERSION)
public class LOTRRings
{
    public static final String MODID = "lotrrings";

    public static final String VERSION = "1.0";
    @SidedProxy(serverSide = "me.xtimpugz.lotrrings.proxies.ServerProxy",clientSide="me.xtimpugz.lotrrings.proxies.ClientProxyC")
    public static CommonProxy proxy;

    @Mod.Instance
    public static LOTRRings instance;


    @Mod.EventHandler
    public void init(FMLInitializationEvent event)
    {
        NetworkRegistry.INSTANCE.registerGuiHandler(this, new UIHandler());

        LOTRRItems.register();
        LOTRRBlocks.register();
        LOTRRTileEntities.register();
       proxy.init(event);
    }
    @Mod.EventHandler
    public void preInit(FMLPreInitializationEvent event){
      proxy.preInit(event);
  }
    @Mod.EventHandler
    public void postInit(FMLPostInitializationEvent event){
        proxy.postInit(event);
    }
}