OSDN Git Service

大規模なソース仕様変更
[chemicraft/chemicraft.git] / common / pcc / chemicraft / ChemiCraftRegisterItem.java
1 package pcc.chemicraft;
2
3 import pcc.chemicraft.item.ItemAtoms;
4 import pcc.chemicraft.item.ItemAtomsGrenade;
5 import pcc.chemicraft.item.ItemChemiCell;
6 import pcc.chemicraft.item.ItemCompounds;
7 import pcc.chemicraft.item.ItemDust;
8 import pcc.chemicraft.item.ItemGasCollectingBottle;
9 import pcc.chemicraft.item.ItemRadiationBallet;
10 import pcc.chemicraft.item.ItemRadiationGun;
11
12 public class ChemiCraftRegisterItem extends ChemiCraftRegister {
13
14         public ChemiCraftRegisterItem(ChemiCraft mod) {
15                 super(mod);
16         }
17
18         @Override
19         public void start() {
20                 /*
21                  * 代入
22                  */
23                 this.mod.itemAtoms = new ItemAtoms(this.mod.atomsID).setItemName("atoms");
24                 this.mod.itemCompounds = new ItemCompounds(this.mod.compoundsID).setItemName("compounds");
25                 this.mod.itemGasCollectingBottle = new ItemGasCollectingBottle(this.mod.gasCollectingBottleID).setItemName("gasCollectingBottle").setIconIndex(0);
26                 this.mod.itemAtomGrenade = new ItemAtomsGrenade(this.mod.atomGrenadeID).setItemName("grenade").setIconIndex(1);
27                 this.mod.itemChemicalCells = new ItemChemiCell(this.mod.chemicalCellsID).setItemName("chemiCell").setIconIndex(3);
28                 this.mod.itemDust = new ItemDust(15000).setItemName("dust").setIconIndex(12);
29                 this.mod.itemRadiationGun = new ItemRadiationGun(this.mod.radiationGunID).setIconIndex(4).setItemName("RadiationGun");
30                 this.mod.itemRadiationBallet = new ItemRadiationBallet(this.mod.radiationBalletID).setIconIndex(5).setItemName("RadiationBallet");
31
32                 /*
33                  * 名前登録&Minecraftに登録
34                  */
35                 this.mod.nameAuxiliary.addName(this.mod.itemAtoms, ChemiCraft.ATOMSNAME);
36                 this.mod.nameAuxiliary.addName(this.mod.itemAtoms, "ja_JP", ChemiCraft.ATOMSNAMEJP);
37                 this.mod.nameAuxiliary.addName(this.mod.itemGasCollectingBottle, "GasCollectingBottle");
38                 this.mod.nameAuxiliary.addName(this.mod.itemGasCollectingBottle, "ja_JP", "集気瓶");
39                 this.mod.nameAuxiliary.addName(this.mod.itemAtomGrenade, "AtomGrenade");
40                 this.mod.nameAuxiliary.addName(this.mod.itemAtomGrenade, "ja_JP", "元素手榴弾");
41                 this.mod.nameAuxiliary.addName(this.mod.itemDust, "dust");
42                 this.mod.nameAuxiliary.addName(this.mod.itemDust, "ja_JP", "粉塵");
43                 this.mod.nameAuxiliary.addName(this.mod.itemRadiationGun, "RadiationGun");
44                 this.mod.nameAuxiliary.addName(this.mod.itemRadiationGun, "ja_JP", "放射線銃");
45                 this.mod.nameAuxiliary.addName(this.mod.itemRadiationBallet, "RadiationBallet");
46                 this.mod.nameAuxiliary.addName(this.mod.itemRadiationGun, "ja_JP", "放射線弾");
47         }
48
49 }