@Override
 public void addInformation(
     ItemStack stack, EntityPlayer playerIn, List<String> tooltip, boolean advanced) {
   if (I18n.canTranslate(this.getUnlocalizedName(stack) + ".tooltip")) {
     tooltip.add(
         TextFormatting.GRAY.toString()
             + LocUtils.translateRecursive(this.getUnlocalizedName(stack) + ".tooltip"));
   }
 }
 public static String formatAmmo(int durability, int ref) {
   return String.format(
           "%s: %s%s%s/%s%s",
           Util.translate(LOC_Ammo),
           CustomFontColor.valueToColorCode((float) durability / (float) ref),
           df.format(durability),
           TextFormatting.GRAY.toString(),
           COLOR_Durability,
           df.format(ref))
       + TextFormatting.RESET;
 }