getCount

open fun getCount(id: Array<Int>): Int

Sums the item stacks of all inventory items with the specified item ids

Return

the sum of item stacks of inventory items with the specified ids

Parameters

id

the item ids


open fun getCount(name: Array<String>): Int

Sums the item stacks of all inventory items with the specified item names

Return

the sum of item stacks of inventory items with the specified names

Parameters

name

the item names


open fun getCount(filter: Predicate<InventoryItem>): Int

Sums the item stacks of all inventory items matching the specified filter

Return

the sum of item stacks of inventory items matching the specified filter

Parameters

filter

the item filter