EcoCityCraft/Spigot-API — pull request #2 by aikar (2013-07-07 14:41:51+00:00)
Title: [B] Add InventoryClickEvent.getClickedInventory. Adds BUKKIT-4495

**The Issue:**
Plugins currently have to currently do the logic themselves on the raw slot ID in order to determine the inventory clicked.

**Justification**
An API that simply returns which inventory was clicked will simplify plugin development. If the internals change in the future where the raw slot method is not accurate or not needed, then the getClickedInventory calculation can be updated and plugins will not break.

Currently plugins require checking an implementation detail to figure this out, and that is not recommended.

**Breakdown**
This change uses the current method of determining the clicked inventory and exposes it by getClickedInventory()