onClose

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

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