Exemple #1
0
 public override Packet Read(byte[] data)
 {
     var ms = new MinecraftStream(data);
     var re = new LoginStart() { ID = ms.ReadVarInt() };
     var l = ms.ReadVarInt();
     re.Name = ms.ReadString(l);
     return  re;
 }
Exemple #2
0
        public override Packet Read(byte[] data)
        {
            var ms = new MinecraftStream(data);
            var re = new LoginStart()
            {
                ID = ms.ReadVarInt()
            };
            var l = ms.ReadVarInt();

            re.Name = ms.ReadString(l);
            return(re);
        }