public virtual void ReadCapabilitiesFromNBT(NBTTagCompound par1NBTTagCompound) { if (par1NBTTagCompound.HasKey("abilities")) { NBTTagCompound nbttagcompound = par1NBTTagCompound.GetCompoundTag("abilities"); DisableDamage = nbttagcompound.Getbool("invulnerable"); IsFlying = nbttagcompound.Getbool("flying"); AllowFlying = nbttagcompound.Getbool("mayfly"); IsCreativeMode = nbttagcompound.Getbool("instabuild"); } }