hasItem

abstract fun hasItem(item: ItemStack): Boolean

If this inventory contains the specified item.

Return

true if the item is in this inventory, false otherwise

Parameters

item

the item