aboutsummaryrefslogtreecommitdiff
path: root/azalea/src/bot.rs
diff options
context:
space:
mode:
Diffstat (limited to 'azalea/src/bot.rs')
-rw-r--r--azalea/src/bot.rs12
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;