/// <summary>
        /// Writes a tile entity to NBT.
        /// </summary>
        public override void WriteToNBT(NBTTagCompound par1NBTTagCompound)
        {
            base.WriteToNBT(par1NBTTagCompound);
            par1NBTTagCompound.SetShort("BurnTime", (short)FurnaceBurnTime);
            par1NBTTagCompound.SetShort("CookTime", (short)FurnaceCookTime);
            NBTTagList nbttaglist = new NBTTagList();

            for (int i = 0; i < FurnaceItemStacks.Length; i++)
            {
                if (FurnaceItemStacks[i] != null)
                {
                    NBTTagCompound nbttagcompound = new NBTTagCompound();
                    nbttagcompound.SetByte("Slot", (byte)i);
                    FurnaceItemStacks[i].WriteToNBT(nbttagcompound);
                    nbttaglist.AppendTag(nbttagcompound);
                }
            }

            par1NBTTagCompound.SetTag("Items", nbttaglist);
        }
 /// <summary>
 /// Writes a tile entity to NBT.
 /// </summary>
 public override void WriteToNBT(NBTTagCompound par1NBTTagCompound)
 {
     base.WriteToNBT(par1NBTTagCompound);
     par1NBTTagCompound.SetString("EntityId", MobID);
     par1NBTTagCompound.SetShort("Delay", (short)Delay);
 }