OSDN Git Service

ファイルパス色々変更。
[chemicraft/chemicraft.git] / common / pcc / chemicraft / base / ChemiCraftRegisterBlock.java
index 69315f1..7a217ea 100644 (file)
@@ -2,10 +2,15 @@ package pcc.chemicraft.base;
 
 import net.minecraft.block.Block;
 import net.minecraftforge.common.MinecraftForge;
+import pcc.chemicraft.base.gen.WorldGenAtomsOre;
 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) {
@@ -14,31 +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);
                }
-
-               /*
-                * Minecraftに登録
-                */
-               
-
-               /*
-                * 名前登録
-                */
-               
-
        }
 
 }