InventoryGUI

abstract class InventoryGUI<T : ForInventory>(data: InventoryGUIData<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.

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

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

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

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

fun register()
set
Link copied to clipboard

Temporarily sets the given item at the given slots.

abstract operator 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.

fun unregister()

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