Exemple #1
0
        public override byte[] Write()
        {
            List <byte> bytes = new List <byte>();

            bytes.AddRange(McUUID.ToBytes(UUID));
            bytes.AddRange(McString.ToBytes(Username));
            return(bytes.ToArray());
        }
Exemple #2
0
        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());
        }
Exemple #3
0
 public override byte[] Write() => McString.ToBytes(JSONResponse);
Exemple #4
0
 public override byte[] Write()
 {
     return(McString.ToBytes(Name));
 }