G U I Page Builder
Functions
button
Link copied to clipboard
fun button(slots: InventorySlotCompound<T>, itemStack: ItemStack, onClick: (GUIClickEvent<T>) -> Unit)
Content copied to clipboard
changeGUI
Link copied to clipboard
fun changeGUI(slots: InventorySlotCompound<T>, icon: ItemStack, newGUI: () -> GUI<*>, newPage: Int? = null, onChange: (GUIClickEvent<T>) -> Unit? = null)
Content copied to clipboard
compoundScroll
Link copied to clipboard
fun compoundScroll(slots: InventorySlotCompound<T>, icon: ItemStack, compound: GUIRectSpaceCompound<T, *>, scrollTimes: Int = 1, scrollLines: Int = 1, reverse: Boolean = false)
Content copied to clipboard
fun compoundScroll(slots: InventorySlotCompound<T>, icon: ItemStack, compound: GUISpaceCompound<T, *>, scrollDistance: Int = 1, scrollTimes: Int = 1, reverse: Boolean = false)
Content copied to clipboard
compoundSpace
Link copied to clipboard
fun <E> compoundSpace(slots: InventorySlotCompound<T>, compound: GUISpaceCompound<T, E>)
Content copied to clipboard
createCompound
Link copied to clipboard
fun <E> createCompound(iconGenerator: (E) -> ItemStack, onClick: (clickEvent: GUIClickEvent<T>, E) -> Unit? = null): GUISpaceCompound<T, E>
Content copied to clipboard
createRectCompound
Link copied to clipboard
fun <E> createRectCompound(fromSlot: SingleInventorySlot<out T>, toSlot: SingleInventorySlot<out T>, iconGenerator: (E) -> ItemStack, onClick: (clickEvent: GUIClickEvent<T>, E) -> Unit? = null): GUIRectSpaceCompound<T, E>
Content copied to clipboard
createSimpleCompound
Link copied to clipboard
createSimpleRectCompound
Link copied to clipboard
fun createSimpleRectCompound(fromSlot: SingleInventorySlot<out T>, toSlot: SingleInventorySlot<out T>): GUIRectSpaceCompound<T, GUICompoundElement<T>>
Content copied to clipboard
freeSlot
Link copied to clipboard
nextPage
Link copied to clipboard
fun nextPage(slots: InventorySlotCompound<T>, icon: ItemStack, onChange: (GUIClickEvent<T>) -> Unit? = null)
Content copied to clipboard
fun nextPage(slots: InventorySlotCompound<T>, icon: ItemStack, shouldChange: (GUIClickEvent<T>) -> Boolean? = null, onChange: (GUIClickEvent<T>) -> Unit? = null)
Content copied to clipboard
pageChanger
Link copied to clipboard
fun pageChanger(slots: InventorySlotCompound<T>, icon: ItemStack, toPage: Int, onChange: (GUIClickEvent<T>) -> Unit? = null)
Content copied to clipboard
This is a button which loads the specified toPage if clicked.
fun pageChanger(slots: InventorySlotCompound<T>, icon: ItemStack, toPage: Int, shouldChange: (GUIClickEvent<T>) -> Boolean? = null, onChange: (GUIClickEvent<T>) -> Unit? = null)
Content copied to clipboard
This is a button which loads the specified toPage if clicked.
placeholder
Link copied to clipboard
previousPage
Link copied to clipboard
fun previousPage(slots: InventorySlotCompound<T>, icon: ItemStack, onChange: (GUIClickEvent<T>) -> Unit? = null)
Content copied to clipboard
fun previousPage(slots: InventorySlotCompound<T>, icon: ItemStack, shouldChange: (GUIClickEvent<T>) -> Boolean? = null, onChange: (GUIClickEvent<T>) -> Unit? = null)
Content copied to clipboard