From 7ab3b8924f64f7eadb6b8928b6fae73cb06e4c2f Mon Sep 17 00:00:00 2001 From: mat Date: Sun, 28 Dec 2025 14:31:41 +0500 Subject: move Event and auto_reconnect to the azalea crate --- azalea/src/lib.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'azalea/src/lib.rs') diff --git a/azalea/src/lib.rs b/azalea/src/lib.rs index 2105daee..351c956a 100644 --- a/azalea/src/lib.rs +++ b/azalea/src/lib.rs @@ -2,12 +2,14 @@ #![feature(type_changing_struct_update)] pub mod accept_resource_packs; +pub mod auto_reconnect; pub mod auto_respawn; pub mod auto_tool; pub mod bot; mod builder; mod client_impl; pub mod container; +pub mod events; mod join_opts; pub mod nearest_entity; pub mod pathfinder; @@ -51,11 +53,10 @@ pub use builder::ClientBuilder; use futures::future::BoxFuture; pub use join_opts::JoinOpts; -pub use crate::client_impl::Client; +pub use crate::{client_impl::Client, events::Event}; -pub type BoxHandleFn = - Box BoxFuture<'static, R> + Send>; -pub type HandleFn = fn(Client, azalea_client::Event, S) -> Fut; +pub type BoxHandleFn = Box BoxFuture<'static, R> + Send>; +pub type HandleFn = fn(Client, Event, S) -> Fut; /// A marker that can be used in place of a State in [`ClientBuilder`] or /// [`SwarmBuilder`]. -- cgit v1.2.3