OSDN Git Service

Merge branch 'master' of https://scm.sourceforge.jp/gitroot/chemicraft/chemicraft
[chemicraft/chemicraft.git] / common / pcc / chemicraft / base / ChemiCraftRegisterItem.java
1 package pcc.chemicraft.base;
2
3 import net.minecraft.client.renderer.texture.IconRegister;
4 import net.minecraft.item.Item;
5 import pcc.chemicraft.ChemiCraft;
6 import pcc.chemicraft.base.item.ItemAtomsGrenade;
7 import pcc.chemicraft.base.item.ItemBlackSmoke;
8 import pcc.chemicraft.base.item.ItemDust;
9 import pcc.chemicraft.base.item.ItemOreSerarcher;
10 import pcc.chemicraft.base.item.ItemRadiationBullet;
11 import pcc.chemicraft.base.item.ItemRadiationGun;
12 import pcc.chemicraft.base.ore.ItemAtomIngots;
13
14 /**
15  * アイテムを追加します
16  * @author mozipi,ponkotate
17  */
18 public class ChemiCraftRegisterItem extends ChemiCraftBaseRegister {
19
20         public ChemiCraftRegisterItem(ChemiCraftBase mod) {
21                 super(mod);
22         }
23
24         @Override
25         public void start() {
26                 //アイテムを変数に代入
27                 this.mod.itemAtomIngots = new ItemAtomIngots(this.mod.atomIngotsID).setUnlocalizedName("atomIngots");
28                 this.mod.itemAtomGrenade = new ItemAtomsGrenade(this.mod.atomGrenadeID).setUnlocalizedName("AtomsGrenade");
29                 this.mod.itemBlackSmoke = new ItemBlackSmoke(this.mod.blackSmokeID).setUnlocalizedName("BlackSmoke");
30                 this.mod.itemDust = new ItemDust(this.mod.dustID).setUnlocalizedName("dust");
31                 this.mod.itemOreSearcher = new ItemOreSerarcher(this.mod.oreSerarcherID).setUnlocalizedName("oreSearcher");
32                 this.mod.itemRadiationGun = new ItemRadiationGun(this.mod.radiationGunID).setUnlocalizedName("RadiationGun");
33                 this.mod.itemRadiationBallet = new ItemRadiationBullet(this.mod.radiationBalletID).setUnlocalizedName("RadiationBullet");
34                 this.mod.itemRaditionGunDataChip = new Item(this.mod.raditionGunDataChipID) {
35                         @Override
36                         public void updateIcons(IconRegister par1IconRegister) {
37                                 this.iconIndex = par1IconRegister.registerIcon(ChemiCraft.TEXTURE + "RaditionGunDataChip");
38                         }
39                 }.setUnlocalizedName("RaditionGunDataChip");
40
41                 //名前を登録&Minecraftに登録
42                 this.mod.nameAuxiliary.addName(this.mod.itemAtomGrenade, "AtomGrenade");
43                 this.mod.nameAuxiliary.addName(this.mod.itemAtomGrenade, "ja_JP", "元素手榴弾");
44                 this.mod.nameAuxiliary.addName(this.mod.itemBlackSmoke, "BlackSmoke");
45                 this.mod.nameAuxiliary.addName(this.mod.itemBlackSmoke, "ja_JP", "黒煙");
46                 this.mod.nameAuxiliary.addName(this.mod.itemDust, "dust");
47                 this.mod.nameAuxiliary.addName(this.mod.itemDust, "ja_JP", "粉塵");
48                 this.mod.nameAuxiliary.addName(this.mod.itemOreSearcher, "OreSearcher");
49                 this.mod.nameAuxiliary.addName(this.mod.itemOreSearcher, "ja_JP", "鉱石情報探知機");
50                 this.mod.nameAuxiliary.addName(this.mod.itemRadiationGun, "RadiationGun");
51                 this.mod.nameAuxiliary.addName(this.mod.itemRadiationGun, "ja_JP", "放射線銃");
52                 this.mod.nameAuxiliary.addName(this.mod.itemRadiationBallet, "RadiationBullet");
53                 this.mod.nameAuxiliary.addName(this.mod.itemRadiationGun, "ja_JP", "放射線弾");
54                 this.mod.nameAuxiliary.addName(this.mod.itemRaditionGunDataChip, "RaditionGunDataChip");
55                 this.mod.nameAuxiliary.addName(this.mod.itemRaditionGunDataChip, "ja_JP", "放射線銃データチップ");
56         }
57
58 }