From 9513f42e87f64c409cdb2a100500a50e5a713bac Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Sat, 27 Dec 2025 22:02:00 -0600 Subject: Move Client struct to azalea crate (#297) * move the Client struct out of azalea-client into azalea * actually add client impls in azalea --- azalea-client/src/local_player.rs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'azalea-client/src/local_player.rs') diff --git a/azalea-client/src/local_player.rs b/azalea-client/src/local_player.rs index 4062e32e..977b38f3 100644 --- a/azalea-client/src/local_player.rs +++ b/azalea-client/src/local_player.rs @@ -63,13 +63,12 @@ pub struct PermissionLevel(pub u8); /// /// ``` /// # use azalea_client::local_player::TabList; -/// # fn example(client: &azalea_client::Client) { -/// let tab_list = client.component::(); -/// println!("Online players:"); -/// for (uuid, player_info) in tab_list.iter() { -/// println!("- {} ({}ms)", player_info.profile.name, player_info.latency); +/// fn example(tab_list: &TabList) { +/// println!("Online players:"); +/// for (uuid, player_info) in tab_list.iter() { +/// println!("- {} ({}ms)", player_info.profile.name, player_info.latency); +/// } /// } -/// # } /// ``` /// /// For convenience, `TabList` is also a resource in the ECS. -- cgit v1.2.3