InventoryGUIShared

class InventoryGUIShared<T : ForInventory>(inventoryGUIData: InventoryGUIData<T>) : InventoryGUI<T>

Functions

equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
getPage
Link copied to clipboard

Searches for a page associated to the given page index.

override fun getPage(page: Int?): InventoryGUIPage<T>?
hashCode
Link copied to clipboard
open override fun hashCode(): Int
isThisInv
Link copied to clipboard
open override fun isThisInv(inventory: Inventory): Boolean
loadPage
Link copied to clipboard

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

override fun loadPage(page: InventoryGUIPage<T>)
register
Link copied to clipboard

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

override fun register()
set
Link copied to clipboard

Temporarily sets the given item at the given slots.

open operator override fun set(slot: InventorySlotCompound<T>, value: ItemStack)
toString
Link copied to clipboard
open override fun toString(): String
unregister
Link copied to clipboard

Stops KSpigot from listening to actions in this InventoryGUI anymore.

override fun unregister()

Properties

currentPage
Link copied to clipboard
override val currentPage: InventoryGUIPage<T>
currentPageInt
Link copied to clipboard
override var currentPageInt: Int
data
Link copied to clipboard
override val data: InventoryGUIData<T>