Custom inventory click events

Ok i know how to make inventories in sponge, However, I am having an issue getting the clickevent and determining what was clicked in that custom inventory. I have 2 Inventories where i need one to open another. i know the close and open inventory events just don’t know how to determin what was clicked.

Check the Sponge JavaDocs - you can get to them under the menu at the top of the screen. There’s a list of various types of ClickInventoryEvent that you can look at.