changeGUI

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

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