public static boolean requestManaExactForTool(ItemStack stack,EntityPlayer player,int manaToGet,boolean remove){
  float multiplier=Math.max(0F,1F - getFullDiscountForTools(player));
  int cost=(int)(manaToGet * multiplier);
  return requestManaExact(stack,player,cost,remove);
}

public static boolean requestManaExactForTool ( ItemStack stack , EntityPlayer player , int manaToGet , boolean remove ) { float multiplier = Math . max ( 0F , 1F - getFullDiscountForTools ( player ) ) ; int cost = ( int ) ( manaToGet * multiplier ) ; return requestManaExact ( stack , player , cost , remove ) ; }
requests an exact amount of mana from items in a given player ' s inventory . this version also checks for imanadiscountarmor items equipped to lower the cost .
