public void addInformation(ItemStack par1ItemStack, List par2List)
    {
        if (par1ItemStack.getItemDamage() != 0)
        {
            List var3 = Item.potion.getEffects(par1ItemStack);

            if (var3 != null && !var3.isEmpty())
            {
                Iterator var7 = var3.iterator();

                while (var7.hasNext())
                {
                    PotionEffect var5 = (PotionEffect)var7.next();
                    String var6 = StatCollector.translateToLocal(var5.getEffectName()).trim();

                    if (var5.getAmplifier() > 0)
                    {
                        var6 = var6 + " " + StatCollector.translateToLocal("potion.potency." + var5.getAmplifier()).trim();
                    }

                    if (var5.getDuration() > 20)
                    {
                        var6 = var6 + " (" + Potion.getDurationString(var5) + ")";
                    }

                    if (Potion.potionTypes[var5.getPotionID()].isBadEffect())
                    {
                        par2List.add("\u00a7c" + var6);
                    }
                    else
                    {
                        par2List.add("\u00a77" + var6);
                    }
                }
            }
            else
            {
                String var4 = StatCollector.translateToLocal("potion.empty").trim();
                par2List.add("\u00a77" + var4);
            }
        }
    }