addItem

abstract fun addItem(item: ItemStack)

Puts the specified item in the first available empty slot in this inventory, or does nothing if the inventory is full.

Parameters

item

the item to add