OSDN Git Service

(・∀・)
[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 /**
13  * Blockを追加します
14  * @author mozipi,ponkotate
15  */
16 public class ChemiCraftRegisterBlock extends ChemiCraftCoreRegister {
17
18         public ChemiCraftRegisterBlock(ChemiCraftCore mod) {
19                 super(mod);
20         }
21
22         @Override
23         public void start() {
24                 //Blockを変数に代入
25                 this.mod.blockPyrolysisTable = new BlockPyrolysisTable(this.mod.pyrolysisTableID, 0, Material.ground).
26                                 setHardness(2.0F).
27                                 setResistance(0.0F).
28                                 setStepSound(Block.soundStoneFootstep).
29                                 setUnlocalizedName("PyrolysisTable");
30                 this.mod.blockElectrolysisTable = new BlockElectrolysisTable(this.mod.electrolysisTableID, 1, Material.ground).
31                                 setHardness(2.0F).
32                                 setResistance(0.0F).
33                                 setStepSound(Block.soundStoneFootstep).
34                                 setUnlocalizedName("ElectrolysisTable");
35                 this.mod.blockChemicalCombinationTable = new BlockChemicalCombinationTable(this.mod.chemicalConbinationTableID, 2, Material.ground).
36                                 setHardness(2.0F).
37                                 setResistance(0.0F).
38                                 setStepSound(Block.soundStoneFootstep).
39                                 setUnlocalizedName("ChemicalCombinationTable");
40                 /*
41                 this.mod.blockToolAndWeaponCraftingTable = new BlockToolAndWeaponCraftingTable(this.mod.toolAndWeaponCraftingTableID, 3, Material.ground).
42                                 setHardness(2.0F).
43                                 setResistance(0.0F).
44                                 setStepSound(Block.soundStoneFootstep).
45                                 setUnlocalizedName("ToolAndWeaponCraftingTable");
46                 */
47                 this.mod.blockChemicalCraftingTable = new BlockChemicalCraftingTable(this.mod.chemicalCraftingTableID, 4, Material.ground).
48                                 setHardness(2.0F).
49                                 setResistance(0.0F).
50                                 setStepSound(Block.soundStoneFootstep).
51                                 setUnlocalizedName("ChemicalCraftingTable");
52
53                 //Minecraftに登録
54                 GameRegistry.registerBlock(this.mod.blockPyrolysisTable, "BlockPyrolysisTable");
55                 GameRegistry.registerBlock(this.mod.blockChemicalCombinationTable, "BlockChemicalCombinationTable");
56                 // GameRegistry.registerBlock(this.mod.blockToolAndWeaponCraftingTable, "BlockToolAndWeaponCraftingTable");
57                 GameRegistry.registerBlock(this.mod.blockChemicalCraftingTable, "BlockMaterialCraftingTable");
58                 GameRegistry.registerBlock(this.mod.blockElectrolysisTable, "BlockElectrolysisTable");
59
60                 //名前登録
61                 this.mod.nameAuxiliary.addName(this.mod.blockPyrolysisTable, "PyrolysisTable");
62                 this.mod.nameAuxiliary.addName(this.mod.blockPyrolysisTable, "ja_JP", "熱分解台");
63                 this.mod.nameAuxiliary.addName(this.mod.blockChemicalCombinationTable, "ChemicalCombinationTable");
64                 this.mod.nameAuxiliary.addName(this.mod.blockChemicalCombinationTable, "ja_JP", "化合台");
65                 // this.mod.nameAuxiliary.addName(this.mod.blockToolAndWeaponCraftingTable, "ToolAndWeaponCraftingTable");
66                 // this.mod.nameAuxiliary.addName(this.mod.blockToolAndWeaponCraftingTable, "ja_JP", "ツール&武器製作台");
67                 this.mod.nameAuxiliary.addName(this.mod.blockChemicalCraftingTable, "ChemicalCraftingTable");
68                 this.mod.nameAuxiliary.addName(this.mod.blockChemicalCraftingTable, "ja_JP", "素材製作台");
69                 this.mod.nameAuxiliary.addName(this.mod.blockElectrolysisTable, "ElectrolysisTable");
70                 this.mod.nameAuxiliary.addName(this.mod.blockElectrolysisTable, "ja_JP", "電気分解台");
71
72         }
73
74 }