changePageByNumber

fun changePageByNumber(slots: GuiSlotCompound, icon: GuiIcon, pageNumber: Int, shouldChange: suspend (GuiClickEvent) -> Boolean = { true }, onChange: suspend (GuiClickEvent) -> Unit? = null)(source)

Adds a page change button, which will open the specified page when clicked.