OSDN Git Service

ファイルパス色々変更。
[chemicraft/chemicraft.git] / common / pcc / chemicraft / base / ChemiCraftRegisterBlock.java
index 0f6662b..7a217ea 100644 (file)
@@ -7,6 +7,10 @@ import pcc.chemicraft.base.ore.BlockAtomOres;
 import pcc.chemicraft.base.ore.ItemAtomOres;
 import cpw.mods.fml.common.registry.GameRegistry;
 
+/**
+ * Blockを追加します
+ * @author mozipi,ponkotate
+ */
 public class ChemiCraftRegisterBlock extends ChemiCraftBaseRegister {
 
        public ChemiCraftRegisterBlock(ChemiCraftBase mod) {
@@ -15,21 +19,16 @@ public class ChemiCraftRegisterBlock extends ChemiCraftBaseRegister {
 
        @Override
        public void start() {
-
-               /*
-                * 変数に代入
-                */
-               for (int i = 0; i < this.mod.blockAtomOres.length; i++)
-               {
+               //鉱石を変数に代入
+               for (int i = 0; i < this.mod.blockAtomOres.length; i++) {
                        this.mod.blockAtomOres[i] = new BlockAtomOres(this.mod.atomOresID[i]).
-                                       setHardness(3.0F).
-                                       setResistance(0.0F).
-                                       setStepSound(Block.soundStoneFootstep).
-                                       setBlockName("AtomsOre" + i);
+                                       setHardness(3.0F).setResistance(0.0F).
+                                       setStepSound(Block.soundStoneFootstep).setUnlocalizedName("BlockAtomsOre");
+                       //鉱石をMinecraftに登録
                        GameRegistry.registerBlock(this.mod.blockAtomOres[i], ItemAtomOres.class, "AtomsOre" + i);
+                       //回収&最適に破壊できるピッケルのレベルを設定
                        MinecraftForge.setBlockHarvestLevel(this.mod.blockAtomOres[i], "pickaxe", 2);
                }
-
        }
 
 }