Allows items to store energy and be charged.
The maximum amount of energy this item can store.
Adds the given energy to the current amount of energy stored in the given itemStack, capped at maxEnergy.
Gets the current amount of energy stored in the given itemStack.
Sets the current amount of energy stored in the given itemStack to energy.