GUIInstance

class GUIInstance<T : ForInventory>(gui: GUI<T>, holder: Player?)

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
getPage
Link copied to clipboard
fun getPage(page: Int?): GUIPage<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
fun isThisInv(inventory: Inventory): Boolean
loadPage
Link copied to clipboard
fun loadPage(page: GUIPage<T>)
Loads the specified page in order to display it in the GUI.
register
Link copied to clipboard
fun register()
Registers this GUI.
reloadCurrentPage
Link copied to clipboard
fun reloadCurrentPage()
Reloads the current page.
set
Link copied to clipboard
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 GUI anymore.

Properties

currentPage
Link copied to clipboard
val currentPage: GUIPage<T>
currentPageInt
Link copied to clipboard
var currentPageInt: Int
gui
Link copied to clipboard
val gui: GUI<T>