setItem

fun setItem(slot: Int, item: ItemStack?)

Sets an item at the specified slot

Since

2.0.0

Parameters

slot

The slot number to set the item in

item

The item to set, or null to clear