setItem

abstract fun setItem(index: Int, item: ItemStack)

Sets the item at the given index to the given item.

Parameters

index

the index of the item

item

the new item