OSDN Git Service

いろいろした
[chemicraft/chemicraft.git] / common / pcc / chemicraft / base / ChemiCraftRegisterEntitys.java
1 package pcc.chemicraft.base;
2
3 import net.minecraft.src.ModLoader;
4 import pcc.chemicraft.base.entity.EntityAtomsGrenade;
5 import pcc.chemicraft.base.entity.EntityDust;
6 import cpw.mods.fml.common.registry.EntityRegistry;
7 import cpw.mods.fml.common.registry.LanguageRegistry;
8
9 /**
10  * Entityを登録します
11  * @author mozipi,ponkotate
12  */
13 public class ChemiCraftRegisterEntitys extends ChemiCraftBaseRegister {
14
15         public ChemiCraftRegisterEntitys(ChemiCraftBase mod) {
16                 super(mod);
17         }
18
19         @Override
20         public void start() {
21                 //手榴弾
22                 LanguageRegistry.instance().addStringLocalization("entity.AtomsGrenade.name", "en_US", "AtomsGrenade");
23                 EntityRegistry.registerModEntity(EntityAtomsGrenade.class,
24                                 "AtomsGrenade",
25                                 ModLoader.getUniqueEntityId(),
26                                 this.mod,
27                                 250,
28                                 1,
29                                 false);
30                 //粉塵
31                 LanguageRegistry.instance().addStringLocalization("entity.Dust.name", "en_US", "Dust");
32                 EntityRegistry.registerModEntity(EntityDust.class,
33                                 "Dust",
34                                 ModLoader.getUniqueEntityId(),
35                                 this.mod,
36                                 250,
37                                 5,
38                                 true);
39         }
40
41 }