From ca39b8b6af27a91431d2a837037881bc882f0dde Mon Sep 17 00:00:00 2001 From: mat Date: Sat, 13 May 2023 19:08:08 -0500 Subject: reexport azalea-chat and add goto docs --- azalea/src/lib.rs | 1 + azalea/src/pathfinder/mod.rs | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/azalea/src/lib.rs b/azalea/src/lib.rs index 604961f4..8a00ff71 100644 --- a/azalea/src/lib.rs +++ b/azalea/src/lib.rs @@ -14,6 +14,7 @@ use app::{App, Plugin, PluginGroup}; pub use azalea_auth as auth; pub use azalea_block as blocks; pub use azalea_brigadier as brigadier; +pub use azalea_chat as chat; pub use azalea_client::*; pub use azalea_core::{BlockPos, Vec3}; pub use azalea_protocol as protocol; diff --git a/azalea/src/pathfinder/mod.rs b/azalea/src/pathfinder/mod.rs index 3f978c95..4db18b0e 100644 --- a/azalea/src/pathfinder/mod.rs +++ b/azalea/src/pathfinder/mod.rs @@ -70,6 +70,13 @@ pub trait PathfinderClientExt { } impl PathfinderClientExt for azalea_client::Client { + /// ```no_run + /// # use azalea::prelude::*; + /// # use azalea::{BlockPos, pathfinder::BlockPosGoal}; + /// # fn example(bot: &Client) { + /// bot.goto(BlockPosGoal::from(BlockPos::new(0, 70, 0))); + /// # } + /// ``` fn goto(&self, goal: impl Goal + Send + Sync + 'static) { self.ecs.lock().send_event(GotoEvent { entity: self.entity, -- cgit v1.2.3