Added documentation for onClickElement

This commit is contained in:
bluefireoly
2020-10-25 16:04:15 +01:00
parent e77f633d40
commit e72128556e

View File

@@ -56,6 +56,10 @@ class GUIBuilder<T : ForInventory>(
guiSlots[page] = GUIPageBuilder(type, page).apply(builder).build()
}
/**
* A callback executed when the user clicks on
* any GUI elements on any page in this GUI.
*/
fun onClickElement(onClick: (GUIClickEvent<T>) -> Unit) {
onClickElement = onClick
}