InventoryGUI

abstract class InventoryGUI<T : ForInventory>(data: InventoryGUIData<T>)

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
getPage
Link copied to clipboard
fun getPage(page: Int?): InventoryGUIPage<T>?
Searches for a page associated to the given page index.
hashCode
Link copied to clipboard
open fun hashCode(): Int
isThisInv
Link copied to clipboard
abstract fun isThisInv(inventory: Inventory): Boolean
loadPage
Link copied to clipboard
fun loadPage(page: InventoryGUIPage<T>)
Loads the specified page in order to display it in the GUI.
register
Link copied to clipboard
fun register()
Registers this InventoryGUI.
reloadCurrentPage
Link copied to clipboard
fun reloadCurrentPage()
Reloads the current page.
set
Link copied to clipboard
abstract operator fun set(slot: InventorySlotCompound<T>, value: ItemStack)
Temporarily sets the given item at the given slots.
toString
Link copied to clipboard
open fun toString(): String
unregister
Link copied to clipboard
fun unregister()
Stops KSpigot from listening to actions in this InventoryGUI anymore.

Properties

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

Inheritors

InventoryGUIShared
Link copied to clipboard