contains

open fun contains(id: Array<Int>): Boolean

Checks if any inventory item exists with any of the specified ids param id the item ids

Return

true if any inventory item exists with any of the specified ids, false otherwise


open fun contains(name: Array<String>): Boolean

Checks if any inventory item exists with any of the specified names param name the item names

Return

true if any inventory item exists with any of the specified names, false otherwise


Checks if any inventory item exists matching the specified filter param filter the item filter

Return

true if any inventory item exists matching the specified filter, false otherwise