From 0569ffd2d85585eb69de9068ab3f62e768bce4e7 Mon Sep 17 00:00:00 2001 From: mat Date: Mon, 15 Dec 2025 14:59:26 +0700 Subject: write/update docs for several items --- azalea/src/bot.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'azalea/src/bot.rs') 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<()>; -- cgit v1.2.3