setGuiData

fun setGuiData(gui: Gui, slot: Int)

Sets the GUI reference and inventory slot for this item provider. This should be called by the GUI when adding this item provider to it.

Parameters

gui

The parent GUI that this item provider belongs to.

slot

The inventory slot index where this item provider is located.