aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src/player.rs
diff options
context:
space:
mode:
authormat <27899617+mat-1@users.noreply.github.com>2022-07-07 05:58:44 +0000
committerGitHub <noreply@github.com>2022-07-07 05:58:44 +0000
commit31e5629ce1c8267802bbcb9d03b60a299d474e59 (patch)
tree5968b48af9b0c30149e908b043966c41dda0a61d /azalea-client/src/player.rs
parent27edd4f578e7b64fdaacefa26f691e2148707a8c (diff)
parent37d854c799236650da3deb025d8b32693531a27f (diff)
downloadazalea-drasl-31e5629ce1c8267802bbcb9d03b60a299d474e59.tar.xz
Merge branch 'main' into 1.19.1
Diffstat (limited to 'azalea-client/src/player.rs')
-rw-r--r--azalea-client/src/player.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/azalea-client/src/player.rs b/azalea-client/src/player.rs
index 7501eede..6c093517 100644
--- a/azalea-client/src/player.rs
+++ b/azalea-client/src/player.rs
@@ -2,6 +2,11 @@ use azalea_entity::Entity;
use azalea_world::Dimension;
use uuid::Uuid;
+/// Something that has a dimension associated to it. Usually, this is a `Client`.
+pub trait DimensionHaver {
+ fn dimension(&self) -> &Dimension;
+}
+
#[derive(Default, Debug)]
pub struct Player {
/// The player's uuid.