1 package pcc.chemicraft.item;
5 import pcc.chemicraft.ChemiCraft;
6 import pcc.chemicraft.ChemiCraftAPI;
7 import net.minecraft.creativetab.CreativeTabs;
8 import net.minecraft.item.Item;
9 import net.minecraft.item.ItemStack;
12 public class ItemChemiCell extends Item
15 public ItemChemiCell(int par1)
18 this.maxStackSize = 64;
19 this.setHasSubtypes(true);
21 this.setCreativeTab(ChemiCraft.instance.creativeTabChemiCraft);
27 public void getSubItems(int par1, CreativeTabs par2CreativeTabs, List par3List){
28 for(int type = 0; type < ChemiCraftAPI.instance().getChemicalCellsName().sizeKeysList(); type++)
30 par3List.add(new ItemStack(par1, 1, type));
31 this.setIconIndex(type);
38 public String getItemNameIS(ItemStack par1ItemStack){
39 return super.getItemName() + "." + ChemiCraftAPI.instance().getChemicalCellsName().getKeyList(par1ItemStack.getItemDamage());
45 public String getTextureFile(){
46 return ChemiCraft.instance.ITEM_TEXTURE;