From 1ca1f1d9e27aeea3adaf359570f2e211e0a9af74 Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Thu, 1 Jan 2026 22:28:53 -0600 Subject: Extensible Account (#301) * refactor Account * clean up implementation and docs * add AccountTrait::join * update changelog * update example --- azalea/examples/nearest_entity.rs | 2 +- azalea/examples/testbot/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'azalea/examples') diff --git a/azalea/examples/nearest_entity.rs b/azalea/examples/nearest_entity.rs index a0385917..418297b5 100644 --- a/azalea/examples/nearest_entity.rs +++ b/azalea/examples/nearest_entity.rs @@ -4,7 +4,7 @@ use azalea::{ nearest_entity::EntityFinder, prelude::*, }; -use azalea_client::Account; +use azalea_client::account::Account; use azalea_core::tick::GameTick; use azalea_entity::{ LocalEntity, Position, diff --git a/azalea/examples/testbot/main.rs b/azalea/examples/testbot/main.rs index 9889e250..b2ad0b61 100644 --- a/azalea/examples/testbot/main.rs +++ b/azalea/examples/testbot/main.rs @@ -190,7 +190,7 @@ async fn handle(bot: Client, event: azalea::Event, state: State) -> anyhow::Resu async fn swarm_handle(_swarm: Swarm, event: SwarmEvent, _state: SwarmState) -> anyhow::Result<()> { match &event { SwarmEvent::Disconnect(account, _join_opts) => { - println!("bot got kicked! {}", account.username); + println!("bot got kicked! {}", account.username()); } SwarmEvent::Chat(chat) => { if chat.message().to_string() == "The particle was not visible for anybody" { -- cgit v1.2.3