Example #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());
        }
Example #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());
        }
Example #3
0
 public override byte[] Write() => McString.ToBytes(JSONResponse);
Example #4
0
 public override byte[] Write()
 {
     return(McString.ToBytes(Name));
 }