[+] Create rotate()

This commit is contained in:
Hykilpikonna
2020-02-21 14:38:33 -05:00
parent b77e7651e7
commit a00255d4b0
@@ -68,4 +68,15 @@ public class PlayerUtils
return new Rotation(yaw, pitch);
}
/**
* Rotate
*
* @param rotation Relative rotation
*/
public static void rotate(Rotation rotation)
{
player().rotationYaw = rotation.getYaw();
player().rotationPitch = rotation.getPitch();
}
}