public virtual void Func_22091_b() { try { string file = System.IO.Path.Combine(worldDir, "session.lock"); using (FileStream fs = File.OpenRead(file)) { java.io.DataInputStream datainputstream = new java.io.DataInputStream(fs); try { if (datainputstream.ReadLong() != field_22100_d) { throw new net.minecraft.src.MinecraftException("The save is being accessed from another location, aborting" ); } } finally { datainputstream.Close(); } } } catch (System.IO.IOException) { throw new net.minecraft.src.MinecraftException("Failed to check session lock, aborting" ); } }
/// <exception cref="System.IO.IOException"/> public override void ReadPacketData(java.io.DataInputStream datainputstream) { protocolVersion = datainputstream.ReadInt(); username = ReadString(datainputstream, 16); mapSeed = datainputstream.ReadLong(); dimension = datainputstream.ReadByte(); }
/// <exception cref="System.IO.IOException"/> public override void ReadPacketData(java.io.DataInputStream datainputstream) { time = datainputstream.ReadLong(); }