public void Read(PacketReader reader) { ProtocolVersion = (int)reader.ReadByte(); Logger.LogToConsole( "Protocol version " + ProtocolVersion.ToString() ); Username = reader.ReadString16(64); Logger.LogToConsole( "Username " + Username ); ServerHost = reader.ReadString16(64); ServerPort = reader.ReadInt(); Logger.LogToConsole( "Server " + ServerHost + ":" + ServerPort ); }
public void Read(PacketReader reader) { Locale = reader.ReadString16(10); Logger.LogToConsole( Locale.ToString() ); ViewDistance = reader.ReadByte(); ChatFlags = reader.ReadByte(); Difficulty = reader.ReadByte(); ShowCapes = reader.ReadBoolean(); }