From d665924eb2163fc8afe256e502a39e72ad0e4a42 Mon Sep 17 00:00:00 2001 From: Raeders <38367311+nebula161@users.noreply.github.com> Date: Fri, 23 Jan 2026 23:04:54 -0500 Subject: Implement SetExperience (#307) --- azalea/src/client_impl/mod.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'azalea/src/client_impl') diff --git a/azalea/src/client_impl/mod.rs b/azalea/src/client_impl/mod.rs index 343b8aef..6725174c 100644 --- a/azalea/src/client_impl/mod.rs +++ b/azalea/src/client_impl/mod.rs @@ -7,7 +7,7 @@ use azalea_client::{ connection::RawConnection, disconnect::DisconnectEvent, join::{ConnectOpts, StartJoinServerEvent}, - local_player::{Hunger, TabList, WorldHolder}, + local_player::{Experience, Hunger, TabList, WorldHolder}, packet::game::SendGamePacketEvent, player::{GameProfileComponent, PlayerInfo}, start_ecs_runner, @@ -329,6 +329,13 @@ impl Client { self.component::().to_owned() } + /// Get the experience of this client. + /// + /// This is a shortcut for `self.component::().to_owned()`. + pub fn experience(&self) -> Experience { + self.component::().to_owned() + } + /// Get the username of this client. /// /// This is a shortcut for -- cgit v1.2.3