rotateToPlayerFacing

fun rotateToPlayerFacing(player: Player, face: BlockFace, allowVertical: Boolean): BlockFace(source)

Rotates a BlockFace to the player's reference frame.

Return

The block face rotated to the player's reference frame

Parameters

player

The player to act as the reference frame. Where the player is facing becomes NORTH.

face

The face to rotate

allowVertical

Whether we should include UP and DOWN