@Override
 public NBTTagCompound writeToNBT(NBTTagCompound compound) {
   NBTHelper.setInt(compound, "energy", energy.getEnergyStored());
   return super.writeToNBT(compound);
 }
 @Override
 public void readFromNBT(NBTTagCompound compound) {
   energy.setEnergyStored(NBTHelper.getInt(compound, "energy"));
   super.readFromNBT(compound);
 }