# pageChanger

fun pageChanger(slots: InventorySlotCompound<T>, icon: ItemStack, toPage: Int, onChange: (GUIClickEvent<T>) -> Unit? = null)
Content copied to clipboard
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.