changePageByKey

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

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