setBlockItem

fun setBlockItem(pos: BlockPos, slot: Int, itemStack: ItemStack)

Sets an item into a container block slot.

Parameters

pos

Block position

slot

Slot index

itemStack

ItemStack to set