aboutsummaryrefslogtreecommitdiff
path: root/azalea/src/lib.rs
diff options
context:
space:
mode:
authormat <27899617+mat-1@users.noreply.github.com>2025-12-28 21:54:12 -0600
committerGitHub <noreply@github.com>2025-12-28 21:54:12 -0600
commit39488a6585ce969af93f43ece1ffb1174dc95e1d (patch)
tree49b63b2321b974a7c6425e53b8602a0b4500f092 /azalea/src/lib.rs
parent25e441944412038da2be4e64854e59169d58305b (diff)
downloadazalea-drasl-39488a6585ce969af93f43ece1ffb1174dc95e1d.tar.xz
Implement `EntityRef` (#299)
* start implementing EntityRef struct * use EntityRef and impl more functions for it * fix doctests * typo * slightly reword some docs * update changelog
Diffstat (limited to 'azalea/src/lib.rs')
-rw-r--r--azalea/src/lib.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/azalea/src/lib.rs b/azalea/src/lib.rs
index 351c956a..332dc565 100644
--- a/azalea/src/lib.rs
+++ b/azalea/src/lib.rs
@@ -9,6 +9,7 @@ pub mod bot;
mod builder;
mod client_impl;
pub mod container;
+mod entity_ref;
pub mod events;
mod join_opts;
pub mod nearest_entity;
@@ -53,7 +54,7 @@ pub use builder::ClientBuilder;
use futures::future::BoxFuture;
pub use join_opts::JoinOpts;
-pub use crate::{client_impl::Client, events::Event};
+pub use crate::{client_impl::Client, entity_ref::EntityRef, events::Event};
pub type BoxHandleFn<S, R> = Box<dyn Fn(Client, Event, S) -> BoxFuture<'static, R> + Send>;
pub type HandleFn<S, Fut> = fn(Client, Event, S) -> Fut;