From ee2575794e91b9457a74a95daf1dcc707058cd58 Mon Sep 17 00:00:00 2001 From: mat Date: Sun, 12 Oct 2025 23:01:54 +0300 Subject: upgrade deps and clean up lots of doc comments --- azalea-client/src/plugins/mining.rs | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'azalea-client/src/plugins/mining.rs') diff --git a/azalea-client/src/plugins/mining.rs b/azalea-client/src/plugins/mining.rs index fda54521..101cd4df 100644 --- a/azalea-client/src/plugins/mining.rs +++ b/azalea-client/src/plugins/mining.rs @@ -147,8 +147,9 @@ fn handle_auto_mine( } } -/// Information about the block we're currently mining. This is only present if -/// we're currently mining a block. +/// Information about the block we're currently mining. +/// +/// This is only present if we're currently mining a block. #[derive(Component, Debug, Clone)] pub struct Mining { pub pos: BlockPos, @@ -441,8 +442,9 @@ pub struct MineBundle { #[derive(Component, Debug, Default, Deref, DerefMut, Clone)] pub struct MineDelay(pub u32); -/// A component that stores the progress of the current mining operation. This -/// is a value between 0 and 1. +/// A component that stores the progress of the current mining operation. +/// +/// This is a value between 0 and 1. #[derive(Component, Debug, Default, Deref, DerefMut, Clone)] pub struct MineProgress(pub f32); @@ -457,8 +459,9 @@ impl MineProgress { } /// A component that stores the number of ticks that we've been mining the same -/// block for. This is a float even though it should only ever be a round -/// number. +/// block for. +/// +/// This is a float despite the fact that it should only ever be a round number. #[derive(Component, Clone, Debug, Default, Deref, DerefMut)] pub struct MineTicks(pub f32); @@ -466,8 +469,8 @@ pub struct MineTicks(pub f32); #[derive(Component, Clone, Debug, Default, Deref, DerefMut)] pub struct MineBlockPos(pub Option); -/// A component that contains the item we're currently using to mine. If we're -/// not mining anything, it'll be [`ItemStack::Empty`]. +/// A component that contains the item we're currently using to mine, or +/// [`ItemStack::Empty`] if nothing is being mined. #[derive(Component, Clone, Debug, Default, Deref, DerefMut)] pub struct MineItem(pub ItemStack); -- cgit v1.2.3