---
title: InventoryGUI -
---
//[KSpigot](../../index.md)/[net.axay.kspigot.inventory](../index.md)/[InventoryGUI](index.md)
# InventoryGUI
[jvm] abstract class [InventoryGUI](index.md)<[T](index.md) : [ForInventory](../-for-inventory/index.md)>(**data**: [InventoryGUIData](../-inventory-g-u-i-data/index.md)<[T](index.md)>)
## Functions
| Name| Summary|
|---|---|
| [equals](../../net.axay.kspigot.utils/-registerable-command/index.md#kotlin/Any/equals/#kotlin.Any?/PointingToDeclaration/)| [jvm]
Content
open operator override fun [equals](../../net.axay.kspigot.utils/-registerable-command/index.md#kotlin/Any/equals/#kotlin.Any?/PointingToDeclaration/)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)
| [getPage](get-page.md)| [jvm]
Brief description
Searches for a page associated to the given page index.
Content
fun [getPage](get-page.md)(page: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)?): [InventoryGUIPage](../-inventory-g-u-i-page/index.md)<[T](index.md)>?
| [hashCode](../../net.axay.kspigot.utils/-registerable-command/index.md#kotlin/Any/hashCode/#/PointingToDeclaration/)| [jvm]
Content
open override fun [hashCode](../../net.axay.kspigot.utils/-registerable-command/index.md#kotlin/Any/hashCode/#/PointingToDeclaration/)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
| [isThisInv](is-this-inv.md)| [jvm]
Content
abstract fun [isThisInv](is-this-inv.md)(inventory: Inventory): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)
| [loadPage](load-page.md)| [jvm]
Brief description
Loads the specified page in order to display it in the GUI.
Content
fun [loadPage](load-page.md)(page: [InventoryGUIPage](../-inventory-g-u-i-page/index.md)<[T](index.md)>)
| [register](register.md)| [jvm]
Brief description
Registers this InventoryGUI. (KSpigot will listen for actions in the inventory.)
Content
fun [register](register.md)()
| [set](set.md)| [jvm]
Brief description
Temporarily sets the given item at the given slots.
Content
abstract operator fun [set](set.md)(slot: [InventorySlotCompound](../-inventory-slot-compound/index.md)<[T](index.md)>, value: ItemStack)
| [toString](../../net.axay.kspigot.utils/-registerable-command/index.md#kotlin/Any/toString/#/PointingToDeclaration/)| [jvm]
Content
open override fun [toString](../../net.axay.kspigot.utils/-registerable-command/index.md#kotlin/Any/toString/#/PointingToDeclaration/)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
| [unregister](unregister.md)| [jvm]
Brief description
Stops KSpigot from listening to actions in this InventoryGUI anymore.
Content
fun [unregister](unregister.md)()
## Properties
| Name| Summary|
|---|---|
| [currentPage](index.md#net.axay.kspigot.inventory/InventoryGUI/currentPage/#/PointingToDeclaration/)| [jvm] val [currentPage](index.md#net.axay.kspigot.inventory/InventoryGUI/currentPage/#/PointingToDeclaration/): [InventoryGUIPage](../-inventory-g-u-i-page/index.md)<[T](index.md)>
| [currentPageInt](index.md#net.axay.kspigot.inventory/InventoryGUI/currentPageInt/#/PointingToDeclaration/)| [jvm] var [currentPageInt](index.md#net.axay.kspigot.inventory/InventoryGUI/currentPageInt/#/PointingToDeclaration/): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
| [data](index.md#net.axay.kspigot.inventory/InventoryGUI/data/#/PointingToDeclaration/)| [jvm] val [data](index.md#net.axay.kspigot.inventory/InventoryGUI/data/#/PointingToDeclaration/): [InventoryGUIData](../-inventory-g-u-i-data/index.md)<[T](index.md)>
## Inheritors
| Name|
|---|
| [InventoryGUIShared](../-inventory-g-u-i-shared/index.md)