addEnergy

open override fun addEnergy(itemStack: ItemStack, energy: Long)

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