Solved Get Player Facing

Discussion in 'Spigot Plugin Development' started by ZeppyYT, May 30, 2016.

  1. Hey Everyone, I want to know if somebody has a method to check if a player see to the WEST or the EAST etc..
    Please Help me.
    Thank you =)
     
  2. Use the player's yaw.
     
  3. I don't want a specify Yaw. I want to know if the player see to the WEST etc
     
  4. Something like this....
    Code (Text):
    public static BlockFace yawToFace(float yaw) {
            return radial[Math.round(yaw / 45f) & 0x7];
        }
    You may need to modify It a bit
     
  5. A little bit complicated ^^'