diff options
| author | mat <github@matdoes.dev> | 2022-06-25 16:23:40 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-06-25 16:23:40 -0500 |
| commit | 460bdfb8bbaf0969df6451a00fc3de214728aec0 (patch) | |
| tree | bc88105b401bcfc27922e70227a89a8f1ac0259a /azalea-client/src/player.rs | |
| parent | 77980f0018eca3a192994021b76ad5d05bff88ea (diff) | |
| download | azalea-drasl-460bdfb8bbaf0969df6451a00fc3de214728aec0.tar.xz | |
merge ClientState and Client
Diffstat (limited to 'azalea-client/src/player.rs')
| -rw-r--r-- | azalea-client/src/player.rs | 5 |
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. |
