private void Func_28175_a(net.minecraft.src.MapDataBase mapdatabase) { if (field_28180_a == null) { return; } try { string file = field_28180_a.Func_28111_b(mapdatabase.field_28152_a); if (file != null) { net.minecraft.src.NBTTagCompound nbttagcompound = new net.minecraft.src.NBTTagCompound (); mapdatabase.Func_28147_b(nbttagcompound); net.minecraft.src.NBTTagCompound nbttagcompound1 = new net.minecraft.src.NBTTagCompound (); nbttagcompound1.SetCompoundTag("data", nbttagcompound); using (FileStream fileoutputstream = File.OpenWrite(file)) net.minecraft.src.CompressedStreamTools.WriteGzippedCompoundToOutputStream(nbttagcompound1 , fileoutputstream); } } catch (System.Exception exception) { Sharpen.Runtime.PrintStackTrace(exception); } }
protected internal override void WriteEntityToNBT(net.minecraft.src.NBTTagCompound nbttagcompound) { nbttagcompound.SetShort("Health", unchecked ((byte)health)); nbttagcompound.SetShort("Age", (short)age); nbttagcompound.SetCompoundTag("Item", item.WriteToNBT(new net.minecraft.src.NBTTagCompound())); }
private void SaveNBTTag(net.minecraft.src.NBTTagCompound nbttagcompound, net.minecraft.src.NBTTagCompound nbttagcompound1) { nbttagcompound.SetLong("RandomSeed", randomSeed); nbttagcompound.SetInteger("SpawnX", spawnX); nbttagcompound.SetInteger("SpawnY", spawnY); nbttagcompound.SetInteger("SpawnZ", spawnZ); nbttagcompound.SetLong("Time", worldTime); nbttagcompound.SetLong("SizeOnDisk", sizeOnDisk); nbttagcompound.SetLong("LastPlayed", Sharpen.Runtime.CurrentTimeMillis()); nbttagcompound.SetString("LevelName", levelName); nbttagcompound.SetInteger("version", saveVersion); nbttagcompound.SetInteger("rainTime", rainTime); nbttagcompound.SetBoolean("raining", isRaining); nbttagcompound.SetInteger("thunderTime", thunderTime); nbttagcompound.SetBoolean("thundering", isThundering); if (nbttagcompound1 != null) { nbttagcompound.SetCompoundTag("Player", nbttagcompound1); } }