onClose

fun onClose(onClose: suspend (GuiCloseEvent) -> Unit)(source)

An event callback which will be invoked if the gui inventory gets closed.