Unfortunately the mouse event is not triggered inside GUI's... EDIT: Hmm, I could actually try using the Java or LWJGL mouse event. EDIT 2: Nvm, I still need to check if the player has pressed a number key or the throw item key, meaning some way of checking if a ClickWindow packet has been sent would probably be better.
Hello, I am currently developing a client side mod and I want to detect when the player takes an item from a container. Now, as far as I know there is no event for this, so what I want to do is detect when the CPacketClickWindow packet is sent, is there any way to do this? If not, is there any other way to detect when the player takes an item from a container?