diff options
| author | mat <git@matdoes.dev> | 2025-10-12 23:01:54 +0300 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-10-12 23:01:54 +0300 |
| commit | ee2575794e91b9457a74a95daf1dcc707058cd58 (patch) | |
| tree | df725850ef18ded5ce3f6552e17095d0f704ae84 /azalea/src/bot.rs | |
| parent | 1a1402954b07cd77615d0afc026c73b008787f51 (diff) | |
| download | azalea-drasl-ee2575794e91b9457a74a95daf1dcc707058cd58.tar.xz | |
upgrade deps and clean up lots of doc comments
Diffstat (limited to 'azalea/src/bot.rs')
| -rw-r--r-- | azalea/src/bot.rs | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/azalea/src/bot.rs b/azalea/src/bot.rs index 1897f510..6d7dc774 100644 --- a/azalea/src/bot.rs +++ b/azalea/src/bot.rs @@ -57,8 +57,10 @@ impl Plugin for BotPlugin { } } -/// A component that clients with [`BotPlugin`] will have. If you just want to -/// check if an entity is one of our bots, you should use [`LocalEntity`]. +/// A component that clients with [`BotPlugin`] will have. +/// +/// If you just want to check if an entity is one of our bots, you should use +/// [`LocalEntity`]. #[derive(Default, Component)] pub struct Bot { jumping_once: bool, @@ -97,8 +99,10 @@ pub trait BotClientExt { fn wait_ticks(&self, n: usize) -> impl Future<Output = ()> + Send; /// Wait for the specified number of ECS `Update`s. fn wait_updates(&self, n: usize) -> impl Future<Output = ()> + Send; - /// Mine a block. This won't turn the bot's head towards the block, so if - /// that's necessary you'll have to do that yourself with [`look_at`]. + /// Mine a block. + /// + /// This won't turn the bot's head towards the block, so if that's necessary + /// you'll have to do that yourself with [`look_at`]. /// /// [`look_at`]: crate::prelude::BotClientExt::look_at fn mine(&self, position: BlockPos) -> impl Future<Output = ()> + Send; |
