changeGUI

fun changeGUI(slots: InventorySlotCompound<T>, icon: ItemStack, newGUI: () -> InventoryGUI<*>, newPage: Int? = null, onChange: (InventoryGUIClickEvent<T>) -> Unit? = null)

By pressing this button, the player switches to another InventoryGUI. The transition effect is applied.