Exemple #1
0
 /// <summary>
 /// Writes food stats to an NBT object.
 /// </summary>
 public virtual void WriteNBT(NBTTagCompound par1NBTTagCompound)
 {
     par1NBTTagCompound.SetInteger("foodLevel", FoodLevel);
     par1NBTTagCompound.SetInteger("foodTickTimer", FoodTimer);
     par1NBTTagCompound.SetFloat("foodSaturationLevel", FoodSaturationLevel);
     par1NBTTagCompound.SetFloat("foodExhaustionLevel", FoodExhaustionLevel);
 }
 /// <summary>
 /// Writes a tile entity to NBT.
 /// </summary>
 public override void WriteToNBT(NBTTagCompound par1NBTTagCompound)
 {
     base.WriteToNBT(par1NBTTagCompound);
     par1NBTTagCompound.SetInteger("blockId", StoredBlockID);
     par1NBTTagCompound.SetInteger("blockData", StoredMetadata);
     par1NBTTagCompound.SetInteger("facing", StoredOrientation);
     par1NBTTagCompound.SetFloat("progress", LastProgress);
     par1NBTTagCompound.Setbool("extending", Extending);
 }