getCount

static int getCount(Array<int> id)

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

static int getCount(Array<String> name)

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

static int getCount(Predicate<InventoryItem> filter)

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