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 /**
10  * レシピを追加します
11  * @author mozipi,ponkotate
12  */
13 public class ChemiCraftRegisterCoreRecipe extends ChemiCraftCoreRegister {
14
15         public ChemiCraftRegisterCoreRecipe(ChemiCraftCore mod) {
16                 super(mod);
17         }
18
19         @Override
20         public void start() {
21                 //科学作業台のレシピ
22                 GameRegistry.addRecipe(new ItemStack(this.mod.blockPyrolysisTable),
23                                 new Object[]{
24                         "XXX", "ZAZ", "ZYZ",
25                         Character.valueOf('X'), new ItemStack(Block.stone),
26                         Character.valueOf('Y'), new ItemStack(Item.bucketLava),
27                         Character.valueOf('Z'), new ItemStack(Item.ingotGold),
28                         Character.valueOf('A'), new ItemStack(this.mod.blockElectrolysisTable),
29                 });
30
31                 GameRegistry.addRecipe(new ItemStack(this.mod.blockElectrolysisTable),
32                                 new Object[]{
33                         "XAX", "YZY", "ZZZ",
34                         Character.valueOf('X'), new ItemStack(Item.redstone),
35                         Character.valueOf('Y'), new ItemStack(this.mod.itemChemicalCells),
36                         Character.valueOf('Z'), new ItemStack(Item.ingotGold),
37                         Character.valueOf('A'), new ItemStack(Block.workbench),
38                 });
39
40                 GameRegistry.addRecipe(new ItemStack(this.mod.blockChemicalCombinationTable),
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(Block.obsidian),
47                 });
48
49                 /*
50                 GameRegistry.addRecipe(new ItemStack(this.mod.blockToolAndWeaponCraftingTable),
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(Item.pickaxeSteel),
57                 });
58                  */
59
60                 GameRegistry.addRecipe(new ItemStack(this.mod.blockChemicalCraftingTable),
61                                 new Object[]{
62                         "XYX", "ZAZ", "ZZZ",
63                         Character.valueOf('X'), new ItemStack(Item.ingotIron),
64                         Character.valueOf('Y'), new ItemStack(Block.workbench),
65                         Character.valueOf('Z'), new ItemStack(Block.stone),
66                         Character.valueOf('A'), new ItemStack(this.mod.itemAtoms, 1, 0),
67                 });
68
69                 GameRegistry.addRecipe(new ItemStack(this.mod.itemChemicalCells, 1, 0),
70                                 new Object[]{
71                         " X ", "ZYZ", "ZYZ",
72                         Character.valueOf('X'), new ItemStack(Item.redstone),
73                         Character.valueOf('Y'), new ItemStack(Item.ingotGold),
74                         Character.valueOf('Z'), new ItemStack(Item.ingotIron),
75                 });
76
77                 //素材制作台のレシピ
78                 this.mod.api.addMaterialRecipe(
79                                 new ItemStack[] {
80                                                 null,
81                                                 null,
82                                                 null,
83                                                 new ItemStack(this.mod.itemAtoms, 1, this.mod.chemicalData.ZINC),
84                                                 null,
85                                                 new ItemStack(this.mod.itemAtoms, 1, this.mod.chemicalData.COPPER),
86                                                 new ItemStack(Item.bucketWater),
87                                                 new ItemStack(Item.bucketWater),
88                                                 new ItemStack(Item.bucketWater),
89                                 },
90                                 new ItemStack(this.mod.itemChemicalCells, 1, 0),
91                                 null);
92
93                 this.mod.api.addMaterialRecipe(
94                                 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 }