From 839d536e8020b291bc1d213a5e8e823dc513a940 Mon Sep 17 00:00:00 2001 From: mat Date: Sun, 28 Dec 2025 09:06:47 -0330 Subject: add a few more functions for getting common components to Client --- azalea/src/client_impl/movement.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'azalea/src/client_impl/movement.rs') diff --git a/azalea/src/client_impl/movement.rs b/azalea/src/client_impl/movement.rs index a708e5f6..6532997d 100644 --- a/azalea/src/client_impl/movement.rs +++ b/azalea/src/client_impl/movement.rs @@ -48,9 +48,8 @@ impl Client { /// Returns the direction the client is looking. /// /// See [`Self::set_direction`] for more details. - pub fn direction(&self) -> (f32, f32) { - let look_direction = *self.component::(); - (look_direction.y_rot(), look_direction.x_rot()) + pub fn direction(&self) -> LookDirection { + *self.component::() } /// Start walking in the given direction. -- cgit v1.2.3