From 460bdfb8bbaf0969df6451a00fc3de214728aec0 Mon Sep 17 00:00:00 2001 From: mat Date: Sat, 25 Jun 2022 16:23:40 -0500 Subject: merge ClientState and Client --- azalea-client/src/player.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'azalea-client/src/player.rs') 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. -- cgit v1.2.3