public override byte[] Write() { List <byte> bytes = new List <byte>(); bytes.AddRange(McUUID.ToBytes(UUID)); bytes.AddRange(McString.ToBytes(Username)); return(bytes.ToArray()); }
public override byte[] Write() { List <byte> bytes = new List <byte>(); bytes.AddRange(McVarint.ToBytes(ProtocolVersion)); bytes.AddRange(McString.ToBytes(Address)); bytes.AddRange(McUnsignedShort.ToBytes(Port)); bytes.AddRange(McVarint.ToBytes((int)LoginState)); return(bytes.ToArray()); }
public override byte[] Write() => McString.ToBytes(JSONResponse);
public override byte[] Write() { return(McString.ToBytes(Name)); }