summaryrefslogtreecommitdiff
path: root/src/main/java/darkknight/jewelrycraft/recipes/CraftingRecipes.java
blob: 34374d136d0073ad387a0b620899c06a103523fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
package darkknight.jewelrycraft.recipes;

import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.registry.GameRegistry;
import darkknight.jewelrycraft.block.BlockList;
import darkknight.jewelrycraft.item.ItemList;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import net.minecraftforge.oredict.ShapedOreRecipe;

public class CraftingRecipes {
	private static boolean isInitialized = false;

	/**
	 * @param e
	 */
	public static void preInit(FMLPreInitializationEvent e) {
		if (!isInitialized) {
			// Items
			GameRegistry.addRecipe(new ItemStack(ItemList.thiefGloves),
					"x x", "yxy", "yxy", 'x', ItemList.shadowIngot, 'y',
					new ItemStack(Blocks.wool, 1, 15));
			// Disable ingot molds for balance reasons
			//GameRegistry.addRecipe(new ItemStack(ItemList.clayMolds, 1, 0),
			//		"xx", 'x', Items.clay_ball);
			GameRegistry.addRecipe(new ItemStack(ItemList.clayMolds, 1, 1),
					" x ", "x x", " x ", 'x', Items.clay_ball);
			GameRegistry.addRecipe(new ItemStack(ItemList.clayMolds, 1, 2),
					"x x", "x x", " x ", 'x', Items.clay_ball);
			GameRegistry.addRecipe(new ItemStack(ItemList.clayMolds, 1, 3),
					"xxx", "x x", "xxx", 'x', Items.clay_ball);
			GameRegistry.addRecipe(new ItemStack(ItemList.clayMolds, 1, 4),
					"x x", 'x', Items.clay_ball);
			GameRegistry.addRecipe(new ItemStack(BlockList.handPedestal),
					"bbb", " x ", "yxy", 'x', Blocks.stonebrick, 'y',
					new ItemStack(Blocks.stone_slab, 1, 5), 'b',
					Blocks.cobblestone_wall);
			GameRegistry.addRecipe(new ItemStack(BlockList.shadowEye),
					"bcb", "cec", "bcb", 'b', Blocks.stonebrick, 'c',
					new ItemStack(Blocks.stained_hardened_clay, 1, 15),
					'e', Items.ender_eye);
			GameRegistry.addShapelessRecipe(
					new ItemStack(ItemList.shadowIngot, 9),
					new Object[] { new ItemStack(BlockList.shadowBlock) });
			GameRegistry.addShapelessRecipe(new ItemStack(ItemList.guide),
					new Object[] { new ItemStack(Items.book),
							new ItemStack(ItemList.molds, 1, 0) });
			GameRegistry.addShapelessRecipe(new ItemStack(ItemList.guide),
					new Object[] { new ItemStack(Items.book),
							new ItemStack(ItemList.molds, 1, 1) });
			GameRegistry.addShapelessRecipe(new ItemStack(ItemList.guide),
					new Object[] { new ItemStack(Items.book),
							new ItemStack(ItemList.molds, 1, 2) });
			GameRegistry.addShapelessRecipe(new ItemStack(ItemList.guide),
					new Object[] { new ItemStack(Items.book),
							new ItemStack(ItemList.molds, 1, 3) });
			GameRegistry.addShapelessRecipe(new ItemStack(ItemList.guide),
					new Object[] { new ItemStack(Items.book),
							new ItemStack(ItemList.molds, 1, 4) });
			// Blocks
			GameRegistry.addRecipe(
					new ShapedOreRecipe(new ItemStack(BlockList.molder),
							"x x", "xxx", 'x', Blocks.cobblestone));
			GameRegistry.addRecipe(
					new ShapedOreRecipe(new ItemStack(BlockList.smelter),
							"xyx", "x x", "xzx", 'x', Blocks.cobblestone,
							'y', Items.bucket, 'z', Items.lava_bucket));
			GameRegistry.addRecipe(new ShapedOreRecipe(
					new ItemStack(BlockList.jewelCraftingTable), "xxx",
					"y y", "y y", 'x', Blocks.planks, 'y', Blocks.stone));
			GameRegistry.addRecipe(new ShapedOreRecipe(
					new ItemStack(BlockList.displayer, 2), " x ", "xxx",
					"yyy", 'x', Items.iron_ingot, 'y',
					Blocks.emerald_block));
			GameRegistry.addRecipe(new ShapedOreRecipe(
					new ItemStack(BlockList.shadowBlock, 1), "xxx", "xxx",
					"xxx", 'x', ItemList.shadowIngot));
			// Smelting
			GameRegistry.addSmelting(BlockList.shadowOre,
					new ItemStack(ItemList.shadowIngot), 1.5f);
			GameRegistry.addSmelting(
					new ItemStack(ItemList.clayMolds, 1, 0),
					new ItemStack(ItemList.molds, 1, 0), 0.2F);
			GameRegistry.addSmelting(
					new ItemStack(ItemList.clayMolds, 1, 1),
					new ItemStack(ItemList.molds, 1, 1), 0.2F);
			GameRegistry.addSmelting(
					new ItemStack(ItemList.clayMolds, 1, 2),
					new ItemStack(ItemList.molds, 1, 2), 0.2F);
			GameRegistry.addSmelting(
					new ItemStack(ItemList.clayMolds, 1, 3),
					new ItemStack(ItemList.molds, 1, 3), 0.2F);
			GameRegistry.addSmelting(
					new ItemStack(ItemList.clayMolds, 1, 4),
					new ItemStack(ItemList.molds, 1, 4), 0.2F);
			isInitialized = true;
		}
	}
}