aboutsummaryrefslogtreecommitdiff
path: root/azalea-world/src
diff options
context:
space:
mode:
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> {