I am dealing with player/entity location handling at the moment, and I am not sure which direction I am supposed to go in. I want to be able to recreate a specific location + direction a player is facing. Looking into the methods provided, it seems that i need to use both getLocation() and getHeadRotation(). However, head rotation provides a Vector3d, which provides only an x, y, and a z. I’m not sure if this is what i am supposed to get, I thought the direction someone was looking was supposed to be a pitch and a yaw, or rather, two numbers, not three.
Is this correct, or am i looking in the wrong place?