4.1 KiB
4.1 KiB
title
title |
---|
InventoryGUI - |
//KSpigot/net.axay.kspigot.inventory/InventoryGUI
InventoryGUI
[jvm] abstract class InventoryGUI<T : ForInventory>(data: InventoryGUIData<T>)
Functions
Name | Summary |
---|---|
equals | [jvm] Content open operator override fun equals(other: Any?): Boolean |
getPage | [jvm] Brief description Searches for a page associated to the given page index. Content fun getPage(page: Int?): InventoryGUIPage<T>? |
hashCode | [jvm] Content open override fun hashCode(): Int |
isThisInv | [jvm] Content abstract fun isThisInv(inventory: Inventory): Boolean |
loadPage | [jvm] Brief description Loads the specified page in order to display it in the GUI. Content fun loadPage(page: InventoryGUIPage<T>) |
register | [jvm] Brief description Registers this InventoryGUI. (KSpigot will listen for actions in the inventory.) Content fun register() |
set | [jvm] Brief description Temporarily sets the given item at the given slots. Content abstract operator fun set(slot: InventorySlotCompound<T>, value: ItemStack) |
toString | [jvm] Content open override fun toString(): String |
unregister | [jvm] Brief description Stops KSpigot from listening to actions in this InventoryGUI anymore. Content fun unregister() |
Properties
Name | Summary |
---|---|
currentPage | [jvm] val currentPage: InventoryGUIPage<T> |
currentPageInt | [jvm] var currentPageInt: Int |
data | [jvm] val data: InventoryGUIData<T> |
Inheritors
Name |
---|
InventoryGUIShared |