OSDN Git Service

01bb2c65cd79f1a46ae8310eeaa6a9f784a491a6
[chemicraft/chemicraft.git] / common / pcc / chemicraft / core / ChemiCraftRegisterCoreRecipe.java
1 package pcc.chemicraft.core;
2
3 import net.minecraft.block.Block;
4 import net.minecraft.item.Item;
5 import net.minecraft.item.ItemStack;
6 import pcc.chemicraft.ChemiCraftData;
7 import cpw.mods.fml.common.registry.GameRegistry;
8
9 public class ChemiCraftRegisterCoreRecipe extends ChemiCraftCoreRegister {
10
11         public ChemiCraftRegisterCoreRecipe(ChemiCraftCore mod) {
12                 super(mod);
13         }
14
15         @Override
16         public void start() {
17
18                 /*
19                  * 科学作業台のレシピ
20                  */
21                 GameRegistry.addRecipe(new ItemStack(this.mod.blockPyrolysisTable),
22                                 new Object[]{
23                         "XYX", "ZAZ", "ZZZ",
24                         Character.valueOf('X'), new ItemStack(Item.ingotIron),
25                         Character.valueOf('Y'), new ItemStack(Block.workbench),
26                         Character.valueOf('Z'), new ItemStack(Block.stone),
27                         Character.valueOf('A'), new ItemStack(Item.bucketLava),
28                 });
29
30                 GameRegistry.addRecipe(new ItemStack(this.mod.blockChemicalCombinationTable),
31                                 new Object[]{
32                         "XYX", "ZAZ", "ZZZ",
33                         Character.valueOf('X'), new ItemStack(Item.ingotIron),
34                         Character.valueOf('Y'), new ItemStack(Block.workbench),
35                         Character.valueOf('Z'), new ItemStack(Block.stone),
36                         Character.valueOf('A'), new ItemStack(Block.obsidian),
37                 });
38
39                 /*
40                 GameRegistry.addRecipe(new ItemStack(this.mod.blockToolAndWeaponCraftingTable),
41                                 new Object[]{
42                         "XYX", "ZAZ", "ZZZ",
43                         Character.valueOf('X'), new ItemStack(Item.ingotIron),
44                         Character.valueOf('Y'), new ItemStack(Block.workbench),
45                         Character.valueOf('Z'), new ItemStack(Block.stone),
46                         Character.valueOf('A'), new ItemStack(Item.pickaxeSteel),
47                 });
48                 */
49
50                 GameRegistry.addRecipe(new ItemStack(this.mod.blockChemicalCraftingTable),
51                                 new Object[]{
52                         "XYX", "ZAZ", "ZZZ",
53                         Character.valueOf('X'), new ItemStack(Item.ingotIron),
54                         Character.valueOf('Y'), new ItemStack(Block.workbench),
55                         Character.valueOf('Z'), new ItemStack(Block.stone),
56                         Character.valueOf('A'), new ItemStack(this.mod.itemAtoms, 1, 0),
57                 });
58
59                 /*
60                  * 素材制作代のレシピ
61                  */
62                 //化学電池の追加
63                 this.mod.api.addMaterialRecipe(new ItemStack[] {
64                                 null,
65                                 null,
66                                 null,
67                                 new ItemStack(this.mod.itemAtoms, 1, this.mod.chemicalData.ZINC),
68                                 null,
69                                 new ItemStack(this.mod.itemAtoms, 1, this.mod.chemicalData.COPPER),
70                                 new ItemStack(Item.bucketWater),
71                                 new ItemStack(Item.bucketWater),
72                                 new ItemStack(Item.bucketWater),
73                 },
74                 new ItemStack(this.mod.itemChemicalCells, 1, 0),
75                 null);
76
77                 this.mod.api.addMaterialRecipe(new ItemStack[] {
78                                 new ItemStack(this.mod.itemAtoms, 1, ChemiCraftData.toAtoms("Na")),
79                                 new ItemStack(this.mod.itemAtoms, 1, ChemiCraftData.toAtoms("C")),
80                                 new ItemStack(this.mod.itemAtoms, 1, ChemiCraftData.toAtoms("I")),
81                                 null,
82                                 new ItemStack(Item.appleRed),
83                                 null,
84                                 null,
85                                 null,
86                                 null,
87                 }, 
88                 new ItemStack(this.mod.itemPear),
89                 null
90                                 );
91
92         }
93
94 }