getItem

public ItemStack getItem(int slot)

Gets one item in this inventory view by its raw slot ID.

Return

The item currently in the slot.

Parameters

slot

The ID as returned by InventoryClickEvent.getRawSlot()