setEnergy

abstract fun setEnergy(itemStack: ItemStack, energy: Long)

Sets the current amount of energy stored in the given itemStack to energy.