Files
KSpigot/docs/-k-spigot/net.axay.kspigot.inventory/-inventory-g-u-i-shared/index.md
bluefireoly 69b2e6cd17 Updated docs
2020-10-16 02:13:42 +02:00

4.4 KiB

title
title
InventoryGUIShared -

//KSpigot/net.axay.kspigot.inventory/InventoryGUIShared

InventoryGUIShared

[jvm] class InventoryGUIShared<T : ForInventory>(inventoryGUIData: InventoryGUIData<T>) : InventoryGUI<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
override fun getPage(page: Int?): InventoryGUIPage<T>?


hashCode [jvm]
Content
open override fun hashCode(): Int


isThisInv [jvm]
Content
open override fun isThisInv(inventory: Inventory): Boolean


loadPage [jvm]
Brief description


Loads the specified page in order to display it in the GUI.


Content
override fun loadPage(page: InventoryGUIPage<T>)


register [jvm]
Brief description


Registers this InventoryGUI. (KSpigot will listen for actions in the inventory.)


Content
override fun register()


set [jvm]
Brief description


Temporarily sets the given item at the given slots.


Content
open operator override 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
override fun unregister()


Properties

Name Summary
currentPage [jvm] override val currentPage: InventoryGUIPage<T>
currentPageInt [jvm] override var currentPageInt: Int
data [jvm] override val data: InventoryGUIData<T>