onClick

fun onClick(onClick: suspend (GuiClickEvent) -> Unit)

And event callback which will be invoked if a player interacts with the inventory.