aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src/player.rs
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-client/src/player.rs')
-rw-r--r--azalea-client/src/player.rs10
1 files changed, 6 insertions, 4 deletions
diff --git a/azalea-client/src/player.rs b/azalea-client/src/player.rs
index 46596e48..9a2e7a1c 100644
--- a/azalea-client/src/player.rs
+++ b/azalea-client/src/player.rs
@@ -22,12 +22,14 @@ pub struct PlayerInfo {
pub uuid: Uuid,
/// The current gamemode of the player, like survival or creative.
pub gamemode: GameMode,
- /// The player's latency in milliseconds. The bars in the tab screen depend
- /// on this.
+ /// The player's latency in milliseconds.
+ ///
+ /// The bars in the tab screen depend on this.
pub latency: i32,
/// The player's display name in the tab list, but only if it's different
- /// from the player's normal username. Use `player_info.profile.name` to get
- /// the player's actual username.
+ /// from the player's normal username.
+ ///
+ /// Use [`GameProfile::name`] to get the player's actual username.
pub display_name: Option<Box<FormattedText>>,
}