getEnergy

abstract fun getEnergy(itemStack: ItemStack): Long

Gets the current amount of energy stored in the given itemStack.