diff options
Diffstat (limited to 'azalea-client/src/player.rs')
| -rwxr-xr-x | azalea-client/src/player.rs | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/azalea-client/src/player.rs b/azalea-client/src/player.rs index 5db5c864..1b4f052b 100755 --- a/azalea-client/src/player.rs +++ b/azalea-client/src/player.rs @@ -1,7 +1,6 @@ use azalea_auth::game_profile::GameProfile; use azalea_chat::Component; use azalea_core::GameType; -use azalea_world::entity::EntityData; use azalea_world::World; use uuid::Uuid; @@ -21,19 +20,3 @@ pub struct PlayerInfo { /// The player's display name in the tab list. pub display_name: Option<Component>, } - -impl PlayerInfo { - /// Get a reference to the entity of the player in the world. - pub fn entity<'d>(&'d self, world: &'d World) -> Option<&EntityData> { - world.entity_by_uuid(&self.uuid) - } - - /// Get a mutable reference to the entity of the player in the world. - pub fn entity_mut<'d>(&'d mut self, world: &'d mut World) -> Option<&'d mut EntityData> { - world.entity_mut_by_uuid(&self.uuid) - } - - pub fn set_uuid(&mut self, uuid: Uuid) { - self.uuid = uuid; - } -} |
