This function is called when the item this modification is applied to is clicked
The InventoryClickEvent which has triggered the click