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                         "XXX", "ZAZ", "ZYZ",
24                         Character.valueOf('X'), new ItemStack(Block.stone),
25                         Character.valueOf('Y'), new ItemStack(Item.bucketLava),
26                         Character.valueOf('Z'), new ItemStack(Item.ingotGold),
27                         Character.valueOf('A'), new ItemStack(this.mod.blockElectrolysisTable),
28                 });
29
30                 GameRegistry.addRecipe(new ItemStack(this.mod.blockElectrolysisTable),
31                                 new Object[]{
32                         "XAX", "YZY", "ZZZ",
33                         Character.valueOf('X'), new ItemStack(Item.redstone),
34                         Character.valueOf('Y'), new ItemStack(this.mod.itemChemicalCells),
35                         Character.valueOf('Z'), new ItemStack(Item.ingotGold),
36                         Character.valueOf('A'), new ItemStack(Block.workbench),
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                 GameRegistry.addRecipe(new ItemStack(this.mod.itemChemicalCells, 1, 0),
69                                 new Object[]{
70                         " X ", "ZYZ", "ZYZ",
71                         Character.valueOf('X'), new ItemStack(Item.redstone),
72                         Character.valueOf('Y'), new ItemStack(Item.ingotGold),
73                         Character.valueOf('Z'), new ItemStack(Item.ingotIron),
74                 });
75
76                 /*
77                  * 素材制作代のレシピ
78                  */
79                 //化学電池の追加
80                 this.mod.api.addMaterialRecipe(new ItemStack[] {
81                                 null,
82                                 null,
83                                 null,
84                                 new ItemStack(this.mod.itemAtoms, 1, this.mod.chemicalData.ZINC),
85                                 null,
86                                 new ItemStack(this.mod.itemAtoms, 1, this.mod.chemicalData.COPPER),
87                                 new ItemStack(Item.bucketWater),
88                                 new ItemStack(Item.bucketWater),
89                                 new ItemStack(Item.bucketWater),
90                 },
91                 new ItemStack(this.mod.itemChemicalCells, 1, 0),
92                 null);
93
94                 this.mod.api.addMaterialRecipe(new ItemStack[] {
95                                 new ItemStack(this.mod.itemAtoms, 1, ChemiCraftData.toAtoms("Na")),
96                                 new ItemStack(this.mod.itemAtoms, 1, ChemiCraftData.toAtoms("C")),
97                                 new ItemStack(this.mod.itemAtoms, 1, ChemiCraftData.toAtoms("I")),
98                                 null,
99                                 new ItemStack(Item.appleRed),
100                                 null,
101                                 null,
102                                 null,
103                                 null,
104                 }, 
105                 new ItemStack(this.mod.itemPear),
106                 null
107                                 );
108
109         }
110
111 }