contains

static boolean contains(Array<int> id)

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

static boolean contains(Array<String> name)

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

static boolean contains(Predicate<InventoryItem> filter)

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