aboutsummaryrefslogtreecommitdiff
path: root/azalea/src/pathfinder
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2023-05-13 19:08:08 -0500
committermat <git@matdoes.dev>2023-05-13 19:08:08 -0500
commitca39b8b6af27a91431d2a837037881bc882f0dde (patch)
treef54ca38ff79176b28b99411c34e94f09606225e5 /azalea/src/pathfinder
parent2057877eba5f6f13ba6863b48a9cdd44910a44f8 (diff)
downloadazalea-drasl-ca39b8b6af27a91431d2a837037881bc882f0dde.tar.xz
reexport azalea-chat and add goto docs
Diffstat (limited to 'azalea/src/pathfinder')
-rw-r--r--azalea/src/pathfinder/mod.rs7
1 files changed, 7 insertions, 0 deletions
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,