@Override
public void writeToNBT(NBTTagCompound par1NBTTagCompound)
{
super.writeToNBT(par1NBTTagCompound);
par1NBTTagCompound.setInteger("processTicks", this.processTicks);
NBTTagList var2 = new NBTTagList();
par1NBTTagCompound.setFloat("energyStored", this.getEnergyStored());
for (int var3 = 0; var3 < this.inventory.length; var3++)
{
if (this.inventory[var3] != null)
{
NBTTagCompound var4 = new NBTTagCompound();
var4.setByte("Slot", (byte) var3);
this.inventory[var3].writeToNBT(var4);
var2.appendTag(var4);
}
}
par1NBTTagCompound.setTag("Items", var2);
}