package mhfc.net.common.item.materials; import mhfc.net.MHFCMain; import mhfc.net.common.util.lib.MHFCReference; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.item.Item; public class ItemBombMaterial extends Item { public static final int COOLDOWN = 200; // 200 - cooldown in ticks. 1 sec - // 20 ticks. public ItemBombMaterial() { super(); setUnlocalizedName(MHFCReference.item_bombmaterial_name); setCreativeTab(MHFCMain.mhfctabs); } @Override public void registerIcons(IIconRegister par1IconRegister) { this.itemIcon = par1IconRegister .registerIcon(MHFCReference.item_bombmaterial_icon); } /* * public ItemStack onItemRightClick(ItemStack itemstack, World world, * EntityPlayer player) { if (!player.capabilities.isCreativeMode) { * --itemstack.stackSize; } * * world.playSoundAtEntity(player, "random.bow", 0.5F, 0.4F / * (itemRand.nextFloat() * 0.4F + 0.8F)); if (!world.isRemote) { * world.spawnEntityInWorld(new EntityRathalosFireball(world, player, 2D, * 2D, 2D)); } * * return itemstack; } */ }