From 9a687f0ffebad80441e036aabe14e7cf80c774d3 Mon Sep 17 00:00:00 2001 From: mat Date: Tue, 10 Oct 2023 23:21:23 -0500 Subject: start adding mining to pathfinder --- azalea/src/container.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'azalea/src/container.rs') diff --git a/azalea/src/container.rs b/azalea/src/container.rs index ef6fdcf6..34f86715 100644 --- a/azalea/src/container.rs +++ b/azalea/src/container.rs @@ -79,6 +79,10 @@ impl ContainerClientExt for Client { /// Note that this will send a packet to the server once it's dropped. Also, /// due to how it's implemented, you could call this function multiple times /// while another inventory handle already exists (but you shouldn't). + /// + /// If you just want to get the items in the player's inventory without + /// sending any packets, use [`Client::menu`], [`Menu::player_slots_range`], + /// and [`Menu::slots`]. fn open_inventory(&mut self) -> Option { let ecs = self.ecs.lock(); let inventory = ecs -- cgit v1.2.3