button

override fun button(slot: Int, item: KtInventoryButton<KtInventoryBase>)

Adds an existing button to a single slot

Since

2.0.0

Parameters

slot

Slot number to place the button

item

Button to add

Throws

if slot is not between 0 and size