getBlockItem

fun getBlockItem(pos: BlockPos, slot: Int): ItemStack?

Gets an item from a container block slot.

Return

ItemStack or null if invalid

Parameters

pos

Block position

slot

Slot index