onClick

var onClick: (InventoryClickEvent) -> Unit?

The action to be performed when the button is clicked.