aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src/client.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2023-11-12 17:13:43 -0600
committermat <git@matdoes.dev>2023-11-12 17:13:43 -0600
commit03cc28d8e71ed969b21a0824a93dd8e2671e3178 (patch)
tree88cd604d8fe54d4c79f6cb67ab8b6a2872529a49 /azalea-client/src/client.rs
parent3d22b5b91cf8ea790e98273d114f26589e8280ae (diff)
downloadazalea-drasl-03cc28d8e71ed969b21a0824a93dd8e2671e3178.tar.xz
improve docs a bit
Diffstat (limited to 'azalea-client/src/client.rs')
-rw-r--r--azalea-client/src/client.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/azalea-client/src/client.rs b/azalea-client/src/client.rs
index f4622eed..7f4a6170 100644
--- a/azalea-client/src/client.rs
+++ b/azalea-client/src/client.rs
@@ -133,7 +133,8 @@ pub enum JoinError {
}
impl Client {
- /// Create a new client from the given GameProfile, Connection, and World.
+ /// Create a new client from the given [`GameProfile`], ECS Entity, ECS
+ /// World, and schedule runner function.
/// You should only use this if you want to change these fields from the
/// defaults, otherwise use [`Client::join`].
pub fn new(
@@ -562,9 +563,9 @@ impl Client {
/// Get the username of this client.
///
/// This is a shortcut for
- /// `bot.component::<GameProfileComponent>().name.clone()`.
+ /// `bot.component::<GameProfileComponent>().name.to_owned()`.
pub fn username(&self) -> String {
- self.component::<GameProfileComponent>().name.clone()
+ self.component::<GameProfileComponent>().name.to_owned()
}
/// Get the Minecraft UUID of this client.