Adds the given energy to the current amount of energy stored in the given itemStack, capped at maxEnergy.