Detect different types of inventory clicks

How to get which button was clicked, as ClickInventoryEvent seemingly only runs when the left mouse click is pressed on an itemstack.

How you would detect it would be to use the nested interfaces inside the ClickInventoryEvent. Such as the following


However based on what your message is inferring, im guessing that hasnt worked?

If I understand correctly, the ClickInventoryEvent when no click is specified should be executing for both… but it doesn’t for right click for me…

But I’ll try those and I’ll report if there’s any change

It is correct that the ClickInventoryEvent should fire both. Infact it should fire all these SpongeAPI/ at stable-7 · SpongePowered/SpongeAPI · GitHub