aboutsummaryrefslogtreecommitdiff
path: root/azalea/src/lib.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-09-26 09:26:22 -0630
committermat <git@matdoes.dev>2025-09-26 21:56:32 +0600
commit0ec25dc45ec912bd9ef07ed9107f968de55f4a18 (patch)
treedc393947dc6edba57baac65b4ee899f6108fe545 /azalea/src/lib.rs
parentc811dc471a31175d985e2d448a772c628dcad5f6 (diff)
downloadazalea-drasl-0ec25dc45ec912bd9ef07ed9107f968de55f4a18.tar.xz
don't re-export azalea::bot::*, and some doc improvements
Diffstat (limited to 'azalea/src/lib.rs')
-rw-r--r--azalea/src/lib.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/azalea/src/lib.rs b/azalea/src/lib.rs
index 7b4ec5ae..ae49c649 100644
--- a/azalea/src/lib.rs
+++ b/azalea/src/lib.rs
@@ -4,7 +4,7 @@
pub mod accept_resource_packs;
pub mod auto_respawn;
pub mod auto_tool;
-mod bot;
+pub mod bot;
pub mod container;
pub mod nearest_entity;
pub mod pathfinder;
@@ -34,13 +34,14 @@ pub use azalea_world as world;
pub use bevy_app as app;
use bevy_app::AppExit;
pub use bevy_ecs as ecs;
-pub use bot::*;
use ecs::component::Component;
use futures::{Future, future::BoxFuture};
use protocol::{ServerAddress, connect::Proxy, resolver::ResolverError};
use swarm::SwarmBuilder;
use thiserror::Error;
+use crate::bot::DefaultBotPlugins;
+
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;
@@ -111,7 +112,7 @@ impl ClientBuilder<NoState, ()> {
/// .build()
/// .disable::<azalea::chat_signing::ChatSigningPlugin>(),
/// )
- /// .add_plugins(azalea::DefaultBotPlugins);
+ /// .add_plugins(azalea::bot::DefaultBotPlugins);
/// # client_builder.set_handler(handle);
/// # #[derive(Component, Clone, Default)]
/// # pub struct State;