aboutsummaryrefslogtreecommitdiff
path: root/azalea-inventory/azalea-inventory-macros/src
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-10-12 23:01:54 +0300
committermat <git@matdoes.dev>2025-10-12 23:01:54 +0300
commitee2575794e91b9457a74a95daf1dcc707058cd58 (patch)
treedf725850ef18ded5ce3f6552e17095d0f704ae84 /azalea-inventory/azalea-inventory-macros/src
parent1a1402954b07cd77615d0afc026c73b008787f51 (diff)
downloadazalea-drasl-ee2575794e91b9457a74a95daf1dcc707058cd58.tar.xz
upgrade deps and clean up lots of doc comments
Diffstat (limited to 'azalea-inventory/azalea-inventory-macros/src')
-rw-r--r--azalea-inventory/azalea-inventory-macros/src/menu_impl.rs12
1 files changed, 9 insertions, 3 deletions
diff --git a/azalea-inventory/azalea-inventory-macros/src/menu_impl.rs b/azalea-inventory/azalea-inventory-macros/src/menu_impl.rs
index 4840f84c..1540fdff 100644
--- a/azalea-inventory/azalea-inventory-macros/src/menu_impl.rs
+++ b/azalea-inventory/azalea-inventory-macros/src/menu_impl.rs
@@ -174,14 +174,18 @@ pub fn generate(input: &DeclareMenus) -> TokenStream {
})
}
- /// Get the range of slot indexes that contain the player's inventory. This may be different for each menu.
+ /// Get the range of slot indexes that contain the player's inventory.
+ ///
+ /// This may be different for each menu.
pub fn player_slots_range(&self) -> RangeInclusive<usize> {
match self {
#player_slots_range_match_variants
}
}
- /// Get the range of slot indexes that contain the player's hotbar. This may be different for each menu.
+ /// Get the range of slot indexes that contain the player's hotbar.
+ ///
+ /// This may be different for each menu.
///
/// ```
/// # let inventory = azalea_inventory::Menu::Player(azalea_inventory::Player::default());
@@ -192,7 +196,9 @@ pub fn generate(input: &DeclareMenus) -> TokenStream {
((*self.player_slots_range().end() - 8)..=*self.player_slots_range().end())
}
- /// Get the range of slot indexes that contain the player's inventory, not including the hotbar. This may be different for each menu.
+ /// Get the range of slot indexes that contain the player's inventory, not including the hotbar.
+ ///
+ /// This may be different for each menu.
pub fn player_slots_without_hotbar_range(&self) -> RangeInclusive<usize> {
(*self.player_slots_range().start()..=*self.player_slots_range().end() - 9)
}