package ictrobot.lapisgem;

import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.Configuration;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.Mod.Instance;
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.NetworkMod;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;

@Mod(modid = "LapisGem", name = "LapisGem", version = "1.0.0")
@NetworkMod(clientSideRequired = true, serverSideRequired = false)
public class LapisGem {
  // The instance of your mod that Forge uses.
  @Instance("LapisGem")
  public static LapisGem instance;

  // Says where the client and server 'proxy' code is loaded.
  @SidedProxy(clientSide = "ictrobot.lapisgem.client.ClientProxy", serverSide = "ictrobot.lapisgem.CommonProxy")
  public static CommonProxy proxy;

  @EventHandler
  // used in 1.6.2
  public void preInit(FMLPreInitializationEvent event) {
    Configuration config = new Configuration(
        event.getSuggestedConfigurationFile());
    config.load();
    @SuppressWarnings("unused")
    int lapisGemID = config.get(Configuration.CATEGORY_ITEM, "LapisGemItem",
        30000).getInt();
    config.save();
  }

  @EventHandler
  // used in 1.6.2
  public void load(FMLInitializationEvent event) {
    proxy.registerRenderers();

    lapisGemItem = (new LapisGemItem(lapisGemID));
    LanguageRegistry.addName(lapisGemItem, "Lapis Gem");

    ItemStack lapisStack = new ItemStack(Item.dyePowder, 1, 4);
    ItemStack diamondStack = new ItemStack(Item.diamond);
    GameRegistry.addRecipe(new ItemStack(lapisGemItem), "xxx", "xyx", "xxx",
        'x', lapisStack, 'y', diamondStack);
  }

  @EventHandler
  // used in 1.6.2
  public void postInit(FMLPostInitializationEvent event) {

  }

  public static int lapisGemID;
  public static Item lapisGemItem;
}
@@ -684,17 +684,17 @@
  = %221.0.
-0
+1
 %22)%0A@Netw

Test Update