setInventory

open fun setInventory(items: Map<Integer, ItemStack>)(source)

Sets the inventory contents with a deep copy of the provided items.

Parameters

items

Map of slot numbers to ItemStacks