OSDN Git Service

いろいろした
[chemicraft/chemicraft.git] / common / pcc / chemicraft / base / ChemiCraftRegisterItem.java
1 package pcc.chemicraft.base;
2
3 import pcc.chemicraft.base.item.ItemAtomsGrenade;
4 import pcc.chemicraft.base.item.ItemBlackSmoke;
5 import pcc.chemicraft.base.item.ItemDust;
6 import pcc.chemicraft.base.item.ItemRadiationBallet;
7 import pcc.chemicraft.base.item.ItemRadiationGun;
8
9 /**
10  * アイテムを追加します
11  * @author mozipi,ponkotate
12  */
13 public class ChemiCraftRegisterItem extends ChemiCraftBaseRegister {
14
15         public ChemiCraftRegisterItem(ChemiCraftBase mod) {
16                 super(mod);
17         }
18
19         @Override
20         public void start() {
21                 //アイテムを変数に代入
22                 this.mod.itemAtomGrenade = new ItemAtomsGrenade(this.mod.atomGrenadeID).setItemName("grenade").setIconIndex(1);
23                 this.mod.itemDust = new ItemDust(this.mod.dustID).setItemName("dust").setIconIndex(12);
24                 this.mod.itemRadiationGun = new ItemRadiationGun(this.mod.radiationGunID).setIconIndex(4).setItemName("RadiationGun");
25                 this.mod.itemRadiationBallet = new ItemRadiationBallet(this.mod.radiationBalletID).setIconIndex(5).setItemName("RadiationBallet");
26                 this.mod.itemBlackSmoke = new ItemBlackSmoke(this.mod.blackSmokeID).setIconIndex(7).setItemName("BlackSmoke");
27
28                 //名前を登録&Minecraftに登録
29                 this.mod.nameAuxiliary.addName(this.mod.itemAtomGrenade, "AtomGrenade");
30                 this.mod.nameAuxiliary.addName(this.mod.itemAtomGrenade, "ja_JP", "元素手榴弾");
31                 this.mod.nameAuxiliary.addName(this.mod.itemDust, "dust");
32                 this.mod.nameAuxiliary.addName(this.mod.itemDust, "ja_JP", "粉塵");
33                 this.mod.nameAuxiliary.addName(this.mod.itemRadiationGun, "RadiationGun");
34                 this.mod.nameAuxiliary.addName(this.mod.itemRadiationGun, "ja_JP", "放射線銃");
35                 this.mod.nameAuxiliary.addName(this.mod.itemRadiationBallet, "RadiationBallet");
36                 this.mod.nameAuxiliary.addName(this.mod.itemRadiationGun, "ja_JP", "放射線弾");
37                 this.mod.nameAuxiliary.addName(this.mod.itemBlackSmoke, "BlackSmoke");
38                 this.mod.nameAuxiliary.addName(this.mod.itemBlackSmoke, "ja_JP", "黒煙");
39         }
40
41 }