OSDN Git Service

修正・変更
[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.blockElectrolysisTable),
31                                 new Object[]{
32                         " Y ", "ZXZ", "XAX",
33                         Character.valueOf('X'), new ItemStack(Item.redstone),
34                         Character.valueOf('Y'), new ItemStack(Item.redstone),
35                         Character.valueOf('Z'), new ItemStack(this.mod.itemChemicalCells),
36                         Character.valueOf('A'), new ItemStack(Block.blockGold),
37                 });
38
39                 GameRegistry.addRecipe(new ItemStack(this.mod.blockChemicalCombinationTable),
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(Block.obsidian),
46                 });
47
48                 /*
49                 GameRegistry.addRecipe(new ItemStack(this.mod.blockToolAndWeaponCraftingTable),
50                                 new Object[]{
51                         "XYX", "ZAZ", "ZZZ",
52                         Character.valueOf('X'), new ItemStack(Item.ingotIron),
53                         Character.valueOf('Y'), new ItemStack(Block.workbench),
54                         Character.valueOf('Z'), new ItemStack(Block.stone),
55                         Character.valueOf('A'), new ItemStack(Item.pickaxeSteel),
56                 });
57                 */
58
59                 GameRegistry.addRecipe(new ItemStack(this.mod.blockChemicalCraftingTable),
60                                 new Object[]{
61                         "XYX", "ZAZ", "ZZZ",
62                         Character.valueOf('X'), new ItemStack(Item.ingotIron),
63                         Character.valueOf('Y'), new ItemStack(Block.workbench),
64                         Character.valueOf('Z'), new ItemStack(Block.stone),
65                         Character.valueOf('A'), new ItemStack(this.mod.itemAtoms, 1, 0),
66                 });
67
68                 /*
69                  * 素材制作代のレシピ
70                  */
71                 //化学電池の追加
72                 this.mod.api.addMaterialRecipe(new ItemStack[] {
73                                 null,
74                                 null,
75                                 null,
76                                 new ItemStack(this.mod.itemAtoms, 1, this.mod.chemicalData.ZINC),
77                                 null,
78                                 new ItemStack(this.mod.itemAtoms, 1, this.mod.chemicalData.COPPER),
79                                 new ItemStack(Item.bucketWater),
80                                 new ItemStack(Item.bucketWater),
81                                 new ItemStack(Item.bucketWater),
82                 },
83                 new ItemStack(this.mod.itemChemicalCells, 1, 0),
84                 null);
85
86                 this.mod.api.addMaterialRecipe(new ItemStack[] {
87                                 new ItemStack(this.mod.itemAtoms, 1, ChemiCraftData.toAtoms("Na")),
88                                 new ItemStack(this.mod.itemAtoms, 1, ChemiCraftData.toAtoms("C")),
89                                 new ItemStack(this.mod.itemAtoms, 1, ChemiCraftData.toAtoms("I")),
90                                 null,
91                                 new ItemStack(Item.appleRed),
92                                 null,
93                                 null,
94                                 null,
95                                 null,
96                 }, 
97                 new ItemStack(this.mod.itemPear),
98                 null
99                                 );
100
101         }
102
103 }