# previousPage

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

This button always tries to find the previous page if clicked, and if a previous page exists it is loaded.