[B+C] Added middle click detection for InventoryClickEvent. Fixes BUKKIT-3692

Adds a way to detect middle clicks in InventoryClickEvent.

CB PR: https://github.com/Bukkit/CraftBukkit/pull/1049
Ticket: https://bukkit.atlassian.net/browse/BUKKIT-3692