getItemFromSlot

public static ItemStack getItemFromSlot(InventoryClickEvent event, int slot)

Get the item from a slot in an inventory click event. This method uses reflection to get the method, unreflect it, and invoke using a method handle.

Return

The item in the slot

Parameters

event

The inventory click event

slot

The slot