public void Import(byte[] data) { using (var stream = new MemoryStream(data)) { var reader = new NbtBinaryReader(stream, false); Health = reader.ReadInt32(); Air = reader.ReadInt16(); FireTick = reader.ReadInt32(); IsOnFire = reader.ReadBoolean(); } }