Added documentation for onClickElement
This commit is contained in:
@@ -56,6 +56,10 @@ class GUIBuilder<T : ForInventory>(
|
|||||||
guiSlots[page] = GUIPageBuilder(type, page).apply(builder).build()
|
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) {
|
fun onClickElement(onClick: (GUIClickEvent<T>) -> Unit) {
|
||||||
onClickElement = onClick
|
onClickElement = onClick
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user