aboutsummaryrefslogtreecommitdiff
path: root/azalea-world/src
diff options
context:
space:
mode:
authormat <27899617+mat-1@users.noreply.github.com>2022-11-18 22:11:30 -0600
committerGitHub <noreply@github.com>2022-11-18 22:11:30 -0600
commitbefa22c1f3ff0c1f0cb745b3f4e736910c053a8b (patch)
tree17037d0d62d1259366d9385c47236774886b4002 /azalea-world/src
parent6c6eb5572b869e3199adc560b101fa663c01b5d2 (diff)
downloadazalea-drasl-befa22c1f3ff0c1f0cb745b3f4e736910c053a8b.tar.xz
Player List (#41)
* keep track of player list * send player update events
Diffstat (limited to 'azalea-world/src')
-rwxr-xr-xazalea-world/src/lib.rs4
1 files changed, 4 insertions, 0 deletions
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> {