package com.lothrazar.cyclicmagic;

import java.util.ArrayList;
import com.lothrazar.cyclicmagic.item.*;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fml.common.registry.GameRegistry;

public class ItemRegistry {
	public static ArrayList<Item> items = new ArrayList<Item>();

	public static ItemRespawnEggAnimal respawn_egg;
	public static ItemChestSack chest_sack;
	public static MasterWand master_wand;
	public static ItemPaperCarbon carbon_paper;
	public static ItemWaypointPortal waypoint_portal;
	
	//convention: runes turn on and off
	public static ItemRuneCollector rune_collector;
	public static ItemRuneSlowfall rune_slowfall;

	public static void register() {
		chest_sack = new ItemChestSack();
		ItemRegistry.registerItem(chest_sack, "chest_sack");

		respawn_egg = new ItemRespawnEggAnimal();
		ItemRegistry.registerItem(respawn_egg, "respawn_egg");

		master_wand = new MasterWand();
		ItemRegistry.registerItem(master_wand, "master_wand");

		carbon_paper = new ItemPaperCarbon();
		ItemRegistry.registerItem(carbon_paper, "carbon_paper");

		waypoint_portal = new ItemWaypointPortal();
		ItemRegistry.registerItem(waypoint_portal, "waypoint_portal");

		rune_collector = new ItemRuneCollector();
		ItemRegistry.registerItem(rune_collector, "rune_collector");

		rune_slowfall = new ItemRuneSlowfall();
		ItemRegistry.registerItem(rune_slowfall, "rune_slowfall");
		
		GameRegistry.addRecipe(new ItemStack(master_wand), //placeholder rec
				"xxx",
				"xxx",
				"xxx",
				'x',Items.leather);
	}

	public static void registerItem(Item item, String name) {
		item.setUnlocalizedName(name);
		GameRegistry.registerItem(item, name);
		items.add(item);
	}
}

@@ -98,16 +98,50 @@
 item.*;%0A
+import net.minecraft.init.Blocks;%0A
 import n
@@ -1564,35 +1564,35 @@
 er rec%0A%09%09%09%09%22
-xxx
+dsd
 %22,%0A%09%09%09%09%22
 xxx%22,%0A%09%09%09%09%22x
@@ -1583,19 +1583,19 @@
 %09%09%09%22
-xxx
+qdq
 %22,%0A%09%09%09%09%22
 xxx%22
@@ -1594,19 +1594,19 @@
 %09%09%09%22
-xxx
+qoq
 %22,%0A%09%09%09%09'
 x',I
@@ -1605,23 +1605,111 @@
 %09%09%09'
-x',Items.leathe
+d',Blocks.diamond_block,%0A%09%09%09%09'q',Blocks.quartz_block,%0A%09%09%09%09'o',Blocks.obsidian,%0A%09%09%09%09's',Items.nether_sta
 r);%0A

add recipe v1 for wand