OSDN Git Service

・mcmod.info修正
[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                 GameRegistry.addRecipe(new ItemStack(this.mod.itemGasCollectingBottle),
22                                 new Object[]{
23                         " X ", "X X", "XXX",
24                         Character.valueOf('X'), new ItemStack(Item.ingotIron),
25                 });
26
27                 //科学作業台のレシピ
28                 GameRegistry.addRecipe(new ItemStack(this.mod.blockPyrolysisTable),
29                                 new Object[]{
30                         "XXX", "ZAZ", "ZYZ",
31                         Character.valueOf('X'), new ItemStack(Block.stone),
32                         Character.valueOf('Y'), new ItemStack(Item.bucketLava),
33                         Character.valueOf('Z'), new ItemStack(Item.ingotGold),
34                         Character.valueOf('A'), new ItemStack(this.mod.blockElectrolysisTable),
35                 });
36
37                 GameRegistry.addRecipe(new ItemStack(this.mod.blockElectrolysisTable),
38                                 new Object[]{
39                         "XAX", "YZY", "ZZZ",
40                         Character.valueOf('X'), new ItemStack(Item.redstone),
41                         Character.valueOf('Y'), new ItemStack(this.mod.itemChemicalCells),
42                         Character.valueOf('Z'), new ItemStack(Item.ingotGold),
43                         Character.valueOf('A'), new ItemStack(Block.workbench),
44                 });
45
46                 GameRegistry.addRecipe(new ItemStack(this.mod.blockChemicalCombinationTable),
47                                 new Object[]{
48                         "XYX", "ZAZ", "XYX",
49                         Character.valueOf('X'), new ItemStack(Item.ingotGold),
50                         Character.valueOf('Y'), new ItemStack(Item.ingotIron),
51                         Character.valueOf('Z'), new ItemStack(this.mod.itemAtoms, 1, this.mod.chemicalData.toAtoms("U")),
52                         Character.valueOf('A'), new ItemStack(Block.hopperBlock),
53                 });
54
55                 /*
56                 GameRegistry.addRecipe(new ItemStack(this.mod.blockToolAndWeaponCraftingTable),
57                                 new Object[]{
58                         "XYX", "ZAZ", "ZZZ",
59                         Character.valueOf('X'), new ItemStack(Item.ingotIron),
60                         Character.valueOf('Y'), new ItemStack(Block.workbench),
61                         Character.valueOf('Z'), new ItemStack(Block.stone),
62                         Character.valueOf('A'), new ItemStack(Item.pickaxeSteel),
63                 });
64                  */
65
66                 GameRegistry.addRecipe(new ItemStack(this.mod.blockChemicalCraftingTable),
67                                 new Object[]{
68                         "XXX", "ZAZ", "ZZZ",
69                         Character.valueOf('X'), new ItemStack(this.mod.itemGasCollectingBottle),
70                         Character.valueOf('Y'), new ItemStack(Item.dyePowder, 1, 4),
71                         Character.valueOf('Z'), new ItemStack(Block.stone),
72                         Character.valueOf('A'), new ItemStack(Block.workbench),
73                 });
74
75                 GameRegistry.addRecipe(new ItemStack(this.mod.itemChemicalCells),
76                                 new Object[]{
77                         " X ", "ZYZ", "ZYZ",
78                         Character.valueOf('X'), new ItemStack(Item.redstone),
79                         Character.valueOf('Y'), new ItemStack(Item.ingotGold),
80                         Character.valueOf('Z'), new ItemStack(Item.ingotIron),
81                 });
82
83                 //素材制作台のレシピ
84                 this.mod.api.addMaterialRecipe(
85                                 new ItemStack[] {
86                                                 null,
87                                                 null,
88                                                 null,
89                                                 new ItemStack(this.mod.itemAtoms, 1, this.mod.chemicalData.ZINC),
90                                                 null,
91                                                 new ItemStack(this.mod.itemAtoms, 1, this.mod.chemicalData.COPPER),
92                                                 new ItemStack(Item.bucketWater),
93                                                 new ItemStack(Item.bucketWater),
94                                                 new ItemStack(Item.bucketWater),
95                                 },
96                                 new ItemStack(this.mod.itemChemicalCells),
97                                 null);
98
99                 this.mod.api.addMaterialRecipe(
100                                 new ItemStack[] {
101                                                 new ItemStack(this.mod.itemAtoms, 1, ChemiCraftData.toAtoms("Na")),
102                                                 new ItemStack(this.mod.itemAtoms, 1, ChemiCraftData.toAtoms("C")),
103                                                 new ItemStack(this.mod.itemAtoms, 1, ChemiCraftData.toAtoms("I")),
104                                                 null,
105                                                 new ItemStack(Item.appleRed),
106                                                 null,
107                                                 null,
108                                                 null,
109                                                 null,
110                                 },
111                                 new ItemStack(this.mod.itemPear),
112                                 null
113                                 );
114
115         }
116
117 }