diff options
| author | mat <github@matdoes.dev> | 2023-02-21 19:13:51 +0000 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2023-02-21 19:13:51 +0000 |
| commit | 40073f5baa2645c1894552bf82b8eab24f2dcd92 (patch) | |
| tree | ac14d3e81d127770e2bc0bae0fefeb9272e55e0a /azalea-client/src/client.rs | |
| parent | d88ca2d86530e48f60fc1ff275de15a96e2a1779 (diff) | |
| download | azalea-drasl-40073f5baa2645c1894552bf82b8eab24f2dcd92.tar.xz | |
improve docs and rename model_customisation
Diffstat (limited to 'azalea-client/src/client.rs')
| -rw-r--r-- | azalea-client/src/client.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/azalea-client/src/client.rs b/azalea-client/src/client.rs index 8e1a7938..d9214329 100644 --- a/azalea-client/src/client.rs +++ b/azalea-client/src/client.rs @@ -64,6 +64,9 @@ pub type ClientInformation = ServerboundClientInformationPacket; /// To make a new client, use either [`azalea::ClientBuilder`] or /// [`Client::join`]. /// +/// Note that `Client` is inaccessible from systems (i.e. plugins), but you can +/// achieve everything that client can do with events. +/// /// [`azalea::ClientBuilder`]: https://docs.rs/azalea/latest/azalea/struct.ClientBuilder.html #[derive(Clone)] pub struct Client { @@ -467,6 +470,8 @@ impl Client { } /// Get a HashMap of all the players in the tab list. + /// + /// Internally, this fetches the `players` field in [`LocalPlayer`]. pub fn players(&mut self) -> HashMap<Uuid, PlayerInfo> { self.local_player(&mut self.ecs.lock()).players.clone() } |
