diff options
| author | mat <git@matdoes.dev> | 2023-05-13 19:08:08 -0500 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2023-05-13 19:08:08 -0500 |
| commit | ca39b8b6af27a91431d2a837037881bc882f0dde (patch) | |
| tree | f54ca38ff79176b28b99411c34e94f09606225e5 | |
| parent | 2057877eba5f6f13ba6863b48a9cdd44910a44f8 (diff) | |
| download | azalea-drasl-ca39b8b6af27a91431d2a837037881bc882f0dde.tar.xz | |
reexport azalea-chat and add goto docs
| -rw-r--r-- | azalea/src/lib.rs | 1 | ||||
| -rw-r--r-- | azalea/src/pathfinder/mod.rs | 7 |
2 files changed, 8 insertions, 0 deletions
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, |
