OSDN Git Service

2982592598bd76c89b2265b436531697f20b8a6f
[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 public class ChemiCraftRegisterItem extends ChemiCraftBaseRegister {
10
11         public ChemiCraftRegisterItem(ChemiCraftBase mod) {
12                 super(mod);
13         }
14
15         @Override
16         public void start() {
17                 /*
18                  * 代入
19                  */
20                 this.mod.itemAtomGrenade = new ItemAtomsGrenade(this.mod.atomGrenadeID).setItemName("grenade").setIconIndex(1);
21                 this.mod.itemDust = new ItemDust(this.mod.dustID).setItemName("dust").setIconIndex(12);
22                 this.mod.itemRadiationGun = new ItemRadiationGun(this.mod.radiationGunID).setIconIndex(4).setItemName("RadiationGun");
23                 this.mod.itemRadiationBallet = new ItemRadiationBallet(this.mod.radiationBalletID).setIconIndex(5).setItemName("RadiationBallet");
24                 this.mod.itemBlackSmoke = new ItemBlackSmoke(this.mod.blackSmokeID).setIconIndex(7).setItemName("BlackSmoke");
25
26                 /*
27                  * 名前登録&Minecraftに登録
28                  */
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 }