OSDN Git Service

いろいろした
[chemicraft/chemicraft.git] / common / pcc / chemicraft / base / ChemiCraftRegisterEntitys.java
index 381ef00..ae2a45a 100644 (file)
@@ -1,10 +1,15 @@
 package pcc.chemicraft.base;
 
 import net.minecraft.src.ModLoader;
+import pcc.chemicraft.base.entity.EntityAtomsGrenade;
 import pcc.chemicraft.base.entity.EntityDust;
 import cpw.mods.fml.common.registry.EntityRegistry;
 import cpw.mods.fml.common.registry.LanguageRegistry;
 
+/**
+ * Entityを登録します
+ * @author mozipi,ponkotate
+ */
 public class ChemiCraftRegisterEntitys extends ChemiCraftBaseRegister {
 
        public ChemiCraftRegisterEntitys(ChemiCraftBase mod) {
@@ -13,6 +18,16 @@ public class ChemiCraftRegisterEntitys extends ChemiCraftBaseRegister {
 
        @Override
        public void start() {
+               //手榴弾
+               LanguageRegistry.instance().addStringLocalization("entity.AtomsGrenade.name", "en_US", "AtomsGrenade");
+               EntityRegistry.registerModEntity(EntityAtomsGrenade.class,
+                               "AtomsGrenade",
+                               ModLoader.getUniqueEntityId(),
+                               this.mod,
+                               250,
+                               1,
+                               false);
+               //粉塵
                LanguageRegistry.instance().addStringLocalization("entity.Dust.name", "en_US", "Dust");
                EntityRegistry.registerModEntity(EntityDust.class,
                                "Dust",