OSDN Git Service

44a210c4079cacd2b10d0df0beb3c68ce5d1a0b7
[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                 GameRegistry.addRecipe(new ItemStack(this.mod.blockToolAndWeaponCraftingTable),
40                                 new Object[]{
41                         "XYX", "ZAZ", "ZZZ",
42                         Character.valueOf('X'), new ItemStack(Item.ingotIron),
43                         Character.valueOf('Y'), new ItemStack(Block.workbench),
44                         Character.valueOf('Z'), new ItemStack(Block.stone),
45                         Character.valueOf('A'), new ItemStack(Item.pickaxeSteel),
46                 });
47
48                 GameRegistry.addRecipe(new ItemStack(this.mod.blockChemicalCraftingTable),
49                                 new Object[]{
50                         "XYX", "ZAZ", "ZZZ",
51                         Character.valueOf('X'), new ItemStack(Item.ingotIron),
52                         Character.valueOf('Y'), new ItemStack(Block.workbench),
53                         Character.valueOf('Z'), new ItemStack(Block.stone),
54                         Character.valueOf('A'), new ItemStack(this.mod.itemAtoms, 1, 0),
55                 });
56
57                 /*
58                  * 素材制作代のレシピ
59                  */
60
61                 //化学電池の追加
62                 this.mod.api.addMaterialRecipe(new ItemStack[] {
63                                 null,
64                                 null,
65                                 null,
66                                 new ItemStack(this.mod.itemAtoms, 1, this.mod.chemicalData.ZINC),
67                                 null,
68                                 new ItemStack(this.mod.itemAtoms, 1, this.mod.chemicalData.COPPER),
69                                 new ItemStack(Item.bucketWater),
70                                 new ItemStack(Item.bucketWater),
71                                 new ItemStack(Item.bucketWater),
72                 },
73                 new ItemStack(this.mod.itemChemicalCells, 1, 0),
74                 null);
75
76                 this.mod.api.addMaterialRecipe(new ItemStack[] {
77                                 new ItemStack(this.mod.itemAtoms, 1, ChemiCraftData.toAtoms("Na")),
78                                 new ItemStack(this.mod.itemAtoms, 1, ChemiCraftData.toAtoms("C")),
79                                 new ItemStack(this.mod.itemAtoms, 1, ChemiCraftData.toAtoms("I")),
80                                 null,
81                                 new ItemStack(Item.appleRed),
82                                 null,
83                                 null,
84                                 null,
85                                 null,
86                 }, 
87                 new ItemStack(this.mod.itemPear),
88                 null
89                                 );
90
91         }
92
93 }