aboutsummaryrefslogtreecommitdiff
path: root/azalea/src
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-06-01 09:57:54 -1245
committermat <git@matdoes.dev>2025-06-01 09:57:54 -1245
commit1d3a7c969f430a8cea4296930df0d6c04e253747 (patch)
treec30eeba985e577fe798b416d4282f9c561d9d537 /azalea/src
parentd028d7c3e9c84d177b7b10fa0d8f77d11bcea20f (diff)
downloadazalea-drasl-1d3a7c969f430a8cea4296930df0d6c04e253747.tar.xz
add Client::entities_by and improve some docs
Diffstat (limited to 'azalea/src')
-rw-r--r--azalea/src/pathfinder/mod.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/azalea/src/pathfinder/mod.rs b/azalea/src/pathfinder/mod.rs
index 1b8a71c8..12b6f156 100644
--- a/azalea/src/pathfinder/mod.rs
+++ b/azalea/src/pathfinder/mod.rs
@@ -142,7 +142,7 @@ pub struct GotoEvent {
pub entity: Entity,
pub goal: Arc<dyn Goal>,
/// The function that's used for checking what moves are possible. Usually
- /// `pathfinder::moves::default_move`
+ /// [`moves::default_move`].
pub successors_fn: SuccessorsFn,
/// Whether the bot is allowed to break blocks while pathfinding.
@@ -198,6 +198,8 @@ impl PathfinderClientExt for azalea_client::Client {
/// Pathfind to the given goal and wait until either the target is reached
/// or the pathfinding is canceled.
///
+ /// You can use [`Self::start_goto`] instead if you don't want to wait.
+ ///
/// ```
/// # use azalea::prelude::*;
/// # use azalea::{BlockPos, pathfinder::goals::BlockPosGoal};