bind

fun bind(inventory: Inventory, slot: Int)

Binds the button to a specific inventory and slot.

Parameters

inventory

The inventory to bind the button to.

slot

The slot in the inventory where the button should appear.