findItem

fun findItem(player: Player, item: Item): Int

Find the slot index of an item in player's inventory.

Return

slot index or -1 if not found

Parameters

player

the Player to search

item

item type to find