diff options
| author | mat <git@matdoes.dev> | 2025-12-15 14:59:26 +0700 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-12-15 14:59:26 +0700 |
| commit | 0569ffd2d85585eb69de9068ab3f62e768bce4e7 (patch) | |
| tree | e20d7faf8df7ede4eb3f52d3223b27782a964be0 /azalea/src | |
| parent | 232f1a434406d77dc5ef1d19edcdf006e32491e8 (diff) | |
| download | azalea-drasl-0569ffd2d85585eb69de9068ab3f62e768bce4e7.tar.xz | |
write/update docs for several items
Diffstat (limited to 'azalea/src')
| -rw-r--r-- | azalea/src/bot.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/azalea/src/bot.rs b/azalea/src/bot.rs index 3c262709..8410f0b1 100644 --- a/azalea/src/bot.rs +++ b/azalea/src/bot.rs @@ -86,10 +86,14 @@ fn stop_jumping(mut query: Query<(&mut Jumping, &mut Bot)>) { } } +/// A trait that adds a few additional functions to [`Client`] that help with +/// making bots. pub trait BotClientExt { /// Queue a jump for the next tick. fn jump(&self); /// Turn the bot's head to look at the coordinate in the world. + /// + /// To look at the center of a block, you should call [`BlockPos::center`]. fn look_at(&self, pos: Vec3); /// Get a receiver that will receive a message every tick. fn get_tick_broadcaster(&self) -> tokio::sync::broadcast::Receiver<()>; |
