countItem

fun Inventory.countItem(material: Material): Int

Counts the total amount of items of the specified material type in this inventory.

Return

The total amount of items of the specified material

Parameters

material

The material type to count