aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src/client.rs
diff options
context:
space:
mode:
authormat <27899617+mat-1@users.noreply.github.com>2022-11-18 21:52:09 -0600
committerGitHub <noreply@github.com>2022-11-18 21:52:09 -0600
commit7ad4b227267e3bb2da99ef5d76c30cd54d040157 (patch)
treea0a2fe96b10552b433dd82b632d85cca7b902d86 /azalea-client/src/client.rs
parentad6da947cdd0e3eace84135e054c0bfd0e1351fa (diff)
downloadazalea-drasl-7ad4b227267e3bb2da99ef5d76c30cd54d040157.tar.xz
Add functions to get ChatPacket author and content (#42)
* Add functions to get ChatPacket author and content * add ChatPacket::username and ChatPacket::content
Diffstat (limited to 'azalea-client/src/client.rs')
-rw-r--r--azalea-client/src/client.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/azalea-client/src/client.rs b/azalea-client/src/client.rs
index 326ba002..e271065c 100644
--- a/azalea-client/src/client.rs
+++ b/azalea-client/src/client.rs
@@ -64,7 +64,7 @@ pub enum Event {
/// A player that you control that is currently in a Minecraft server.
#[derive(Clone)]
pub struct Client {
- game_profile: GameProfile,
+ pub game_profile: GameProfile,
pub read_conn: Arc<tokio::sync::Mutex<ReadConnection<ClientboundGamePacket>>>,
pub write_conn: Arc<tokio::sync::Mutex<WriteConnection<ServerboundGamePacket>>>,
pub player: Arc<RwLock<Player>>,