From befa22c1f3ff0c1f0cb745b3f4e736910c053a8b Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Fri, 18 Nov 2022 22:11:30 -0600 Subject: Player List (#41) * keep track of player list * send player update events --- azalea-world/src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'azalea-world/src') diff --git a/azalea-world/src/lib.rs b/azalea-world/src/lib.rs index a802f4c3..26cae205 100755 --- a/azalea-world/src/lib.rs +++ b/azalea-world/src/lib.rs @@ -142,6 +142,10 @@ impl World { self.entity_storage.get_by_uuid(uuid) } + pub fn entity_mut_by_uuid(&mut self, uuid: &Uuid) -> Option<&mut EntityData> { + self.entity_storage.get_mut_by_uuid(uuid) + } + /// Get an iterator over all entities. #[inline] pub fn entities(&self) -> std::collections::hash_map::Values<'_, u32, EntityData> { -- cgit v1.2.3