OSDN Git Service

71c449d62f640e7a27cbfee37a980b09dc294925
[chemicraft/chemicraft.git] / common / pcc / chemicraft / core / ChemiCraftRegisterBlock.java
1 package pcc.chemicraft.core;
2
3 import net.minecraft.block.Block;
4 import net.minecraft.block.material.Material;
5 import pcc.chemicraft.core.block.BlockChemicalCombinationTable;
6 import pcc.chemicraft.core.block.BlockChemicalCraftingTable;
7 import pcc.chemicraft.core.block.BlockElectrolysisTable;
8 import pcc.chemicraft.core.block.BlockPyrolysisTable;
9 import pcc.chemicraft.core.block.BlockToolAndWeaponCraftingTable;
10 import cpw.mods.fml.common.registry.GameRegistry;
11
12 public class ChemiCraftRegisterBlock extends ChemiCraftCoreRegister {
13
14         public ChemiCraftRegisterBlock(ChemiCraftCore mod) {
15                 super(mod);
16         }
17
18         @Override
19         public void start() {
20
21                 /*
22                  * 変数に代入
23                  */
24                 this.mod.blockPyrolysisTable = new BlockPyrolysisTable(this.mod.pyrolysisTableID, 0, Material.ground).
25                                 setHardness(2.0F).
26                                 setResistance(0.0F).
27                                 setStepSound(Block.soundStoneFootstep).
28                                 setBlockName("PyrolysisTable");
29                 this.mod.blockElectrolysisTable = new BlockElectrolysisTable(this.mod.electrolysisTableID, 1, Material.ground).
30                                 setHardness(2.0F).
31                                 setResistance(0.0F).
32                                 setStepSound(Block.soundStoneFootstep).
33                                 setBlockName("ElectrolysisTable");
34                 this.mod.blockChemicalCombinationTable = new BlockChemicalCombinationTable(this.mod.chemicalConbinationTableID, 2, Material.ground).
35                                 setHardness(2.0F).
36                                 setResistance(0.0F).
37                                 setStepSound(Block.soundStoneFootstep).
38                                 setBlockName("ChemicalCombinationTable");
39                 /*
40                 this.mod.blockToolAndWeaponCraftingTable = new BlockToolAndWeaponCraftingTable(this.mod.toolAndWeaponCraftingTableID, 3, Material.ground).
41                                 setHardness(2.0F).
42                                 setResistance(0.0F).
43                                 setStepSound(Block.soundStoneFootstep).
44                                 setBlockName("ToolAndWeaponCraftingTable");
45                 */
46                 this.mod.blockChemicalCraftingTable = new BlockChemicalCraftingTable(this.mod.chemicalCraftingTableID, 4, Material.ground).
47                                 setHardness(2.0F).
48                                 setResistance(0.0F).
49                                 setStepSound(Block.soundStoneFootstep).
50                                 setBlockName("ChemicalCraftingTable");
51
52                 /*
53                  * Minecraftに登録
54                  */
55                 GameRegistry.registerBlock(this.mod.blockPyrolysisTable, "BlockPyrolysisTable");
56                 GameRegistry.registerBlock(this.mod.blockChemicalCombinationTable, "BlockChemicalCombinationTable");
57                 // GameRegistry.registerBlock(this.mod.blockToolAndWeaponCraftingTable, "BlockToolAndWeaponCraftingTable");
58                 GameRegistry.registerBlock(this.mod.blockChemicalCraftingTable, "BlockMaterialCraftingTable");
59                 GameRegistry.registerBlock(this.mod.blockElectrolysisTable, "BlockElectrolysisTable");
60
61                 /*
62                  * 名前登録
63                  */
64                 this.mod.nameAuxiliary.addName(this.mod.blockPyrolysisTable, "PyrolysisTable");
65                 this.mod.nameAuxiliary.addName(this.mod.blockPyrolysisTable, "ja_JP", "熱分解台");
66                 this.mod.nameAuxiliary.addName(this.mod.blockChemicalCombinationTable, "ChemicalCombinationTable");
67                 this.mod.nameAuxiliary.addName(this.mod.blockChemicalCombinationTable, "ja_JP", "化合台");
68                 // this.mod.nameAuxiliary.addName(this.mod.blockToolAndWeaponCraftingTable, "ToolAndWeaponCraftingTable");
69                 // this.mod.nameAuxiliary.addName(this.mod.blockToolAndWeaponCraftingTable, "ja_JP", "ツール&武器製作台");
70                 this.mod.nameAuxiliary.addName(this.mod.blockChemicalCraftingTable, "ChemicalCraftingTable");
71                 this.mod.nameAuxiliary.addName(this.mod.blockChemicalCraftingTable, "ja_JP", "素材製作台");
72                 this.mod.nameAuxiliary.addName(this.mod.blockElectrolysisTable, "ElectrolysisTable");
73                 this.mod.nameAuxiliary.addName(this.mod.blockElectrolysisTable, "ja_JP", "電気分解台");
74
75         }
76
77 }