From 7f4e3c583dd669561e8502822952fc9afe26e005 Mon Sep 17 00:00:00 2001 From: mat Date: Tue, 12 Aug 2025 11:00:11 -1000 Subject: add nearest_entity_by and improve some docs --- azalea/src/container.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'azalea/src/container.rs') diff --git a/azalea/src/container.rs b/azalea/src/container.rs index ee618df2..a7b496ea 100644 --- a/azalea/src/container.rs +++ b/azalea/src/container.rs @@ -174,7 +174,7 @@ impl ContainerHandleRef { /// /// Note that any modifications you make to the `Menu` you're given will not /// actually cause any packets to be sent. If you're trying to modify your - /// inventory, use [`ContainerHandle::click`] instead + /// inventory, use [`Self::click`] instead pub fn menu(&self) -> Option { let ecs = self.client.ecs.lock(); let inventory = ecs @@ -224,6 +224,8 @@ impl ContainerHandleRef { }); } + /// Simulate a click in the container and send the packet to perform the + /// action. pub fn click(&self, operation: impl Into) { let operation = operation.into(); self.client.ecs.lock().send_event(ContainerClickEvent { -- cgit v1.2.3