Exemplo n.º 1
0
        public override Packet Read(byte[] data)
        {
            var re = new PlayerPositionAndLook();
            MinecraftStream ms = new MinecraftStream(data);
            re.ID = ms.ReadVarInt();

            re.X = ms.ReadDouble();
            re.Y = ms.ReadDouble();
            re.Z = ms.ReadDouble();

            //re.Yaw = ms.ReadFloat(data);
            //  re.Pitch = ms.ReadFloat(data);

            // re.OnGround = ms.ReadByte(data);
            return re;
        }