OSDN Git Service

要チェック!!!
[chemicraft/chemicraft.git] / common / pcc / chemicraft / base / ChemiCraftRegisterBlock.java
1 package pcc.chemicraft.base;
2
3 import net.minecraft.block.Block;
4 import net.minecraftforge.common.MinecraftForge;
5 import pcc.chemicraft.base.ore.BlockAtomOres;
6 import pcc.chemicraft.base.ore.ItemAtomOres;
7 import cpw.mods.fml.common.registry.GameRegistry;
8
9 public class ChemiCraftRegisterBlock extends ChemiCraftBaseRegister {
10
11         public ChemiCraftRegisterBlock(ChemiCraftBase mod) {
12                 super(mod);
13         }
14
15         @Override
16         public void start() {
17
18                 /*
19                  * 変数に代入
20                  */
21                 for (int i = 0; i < this.mod.blockAtomOres.length; i++)
22                 {
23                         this.mod.blockAtomOres[i] = new BlockAtomOres(this.mod.atomOresID[i]).
24                                         setHardness(3.0F).
25                                         setResistance(0.0F).
26                                         setStepSound(Block.soundStoneFootstep).
27                                         setBlockName("AtomsOre" + i);
28                         GameRegistry.registerBlock(this.mod.blockAtomOres[i], ItemAtomOres.class, "AtomsOre" + i);
29                         MinecraftForge.setBlockHarvestLevel(this.mod.blockAtomOres[i], "pickaxe", 2);
30                 }
31
32                 /*
33                  * Minecraftに登録
34                  */
35                 
36
37                 /*
38                  * 名前登録
39                  */
40                 
41
42         }
43
44 }