aboutsummaryrefslogtreecommitdiff
path: root/azalea/src/lib.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-12-28 14:31:41 +0500
committermat <git@matdoes.dev>2025-12-28 14:31:41 +0500
commit7ab3b8924f64f7eadb6b8928b6fae73cb06e4c2f (patch)
tree5add5d27fd7c2638ebe6fab9bd7adcdae28a358d /azalea/src/lib.rs
parent9513f42e87f64c409cdb2a100500a50e5a713bac (diff)
downloadazalea-drasl-7ab3b8924f64f7eadb6b8928b6fae73cb06e4c2f.tar.xz
move Event and auto_reconnect to the azalea crate
Diffstat (limited to 'azalea/src/lib.rs')
-rw-r--r--azalea/src/lib.rs9
1 files changed, 5 insertions, 4 deletions
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<S, R> =
- Box<dyn Fn(Client, azalea_client::Event, S) -> BoxFuture<'static, R> + Send>;
-pub type HandleFn<S, Fut> = fn(Client, azalea_client::Event, S) -> Fut;
+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;
/// A marker that can be used in place of a State in [`ClientBuilder`] or
/// [`SwarmBuilder`].