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; }
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); }