aboutsummaryrefslogtreecommitdiff
path: root/azalea-inventory
diff options
context:
space:
mode:
authorAdam Reisenauer <58893124+Mythbusters123@users.noreply.github.com>2023-06-24 18:09:43 -0400
committerGitHub <noreply@github.com>2023-06-24 17:09:43 -0500
commit5e4699688207b8ac722ae7f96c49428242f49a9d (patch)
tree52b0f9b8507fa380376dab81411cb74eed413c95 /azalea-inventory
parentfe687f9bdbdf3e0214ac4ac6da47a181e4dc23dd (diff)
downloadazalea-drasl-5e4699688207b8ac722ae7f96c49428242f49a9d.tar.xz
Add functions `auth_with_link_code`, `get_ms_link_code`, and `get_ms_auth_token`. (#88)
* Add option for grabbing authentication code for Microsoft seperately. Created two new functions, one that outputs the DeviceCodeResponse and one that uses this response to authenticate an actual account. * Added documentation and cleaned up function names. Still wondering about code repeition * reduce code duplication, more docs, cleanup * clippy --------- Co-authored-by: mat <git@matdoes.dev>
Diffstat (limited to 'azalea-inventory')
-rw-r--r--azalea-inventory/azalea-inventory-macros/src/menu_impl.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/azalea-inventory/azalea-inventory-macros/src/menu_impl.rs b/azalea-inventory/azalea-inventory-macros/src/menu_impl.rs
index 194577ad..a4f78370 100644
--- a/azalea-inventory/azalea-inventory-macros/src/menu_impl.rs
+++ b/azalea-inventory/azalea-inventory-macros/src/menu_impl.rs
@@ -179,6 +179,7 @@ pub fn generate(input: &DeclareMenus) -> TokenStream {
/// 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());
/// let hotbar_items = &inventory.slots()[inventory.hotbar_slots_range()];
/// ```
pub fn hotbar_slots_range(&self) -> RangeInclusive<usize> {