--- title: changeGUI - --- //[KSpigot](../../index.md)/[net.axay.kspigot.inventory](../index.md)/[InventoryGUIPageBuilder](index.md)/[changeGUI](change-g-u-i.md) # changeGUI [jvm] Brief description By pressing this button, the player switches to another InventoryGUI. The transition effect is applied. Content fun [changeGUI](change-g-u-i.md)(slots: [InventorySlotCompound](../-inventory-slot-compound/index.md)<[T](index.md)>, itemStack: ItemStack, newGUI: () -> [InventoryGUI](../-inventory-g-u-i/index.md)<*>, newPage: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)?, onChange: ([InventoryGUIClickEvent](../-inventory-g-u-i-click-event/index.md)<[T](index.md)>) -> [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)?)