Entry

abstract class Entry<T : AbstractKtInventoryPaginated<*>>(val paginated: T, val page: Int, val lastPage: Int) : AbstractKtInventory

Inheritors

Constructors

Link copied to clipboard
constructor(paginated: T, page: Int, lastPage: Int)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val line: Int
Link copied to clipboard
val page: Int
Link copied to clipboard
Link copied to clipboard
val size: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val viewers: List<HumanEntity>

Functions

Link copied to clipboard
override fun button(slot: Int, item: KtInventoryButton<KtInventoryBase>)
fun button(vararg slot: Int, item: KtInventoryButton<KtInventoryBase>)
fun button(slot: Int, itemStack: ItemStack, onClick: (KtInventoryButton.ClickEvent<AbstractKtInventory>) -> Unit = {})
fun button(vararg slot: Int, itemStack: ItemStack, onClick: (KtInventoryButton.ClickEvent<AbstractKtInventory>) -> Unit = {})
fun button(slots: Iterable<Int>, itemStack: ItemStack, onClick: (KtInventoryButton.ClickEvent<AbstractKtInventory>) -> Unit = {})
Link copied to clipboard
Link copied to clipboard
@NotNull
abstract fun getInventory(): @NotNull Inventory
Link copied to clipboard
fun getItem(slot: Int): @Nullable ItemStack?
Link copied to clipboard
fun handleClick(event: InventoryClickEvent)
Link copied to clipboard
open override fun onClick(event: InventoryClickEvent)
Link copied to clipboard
open override fun onClose(event: InventoryCloseEvent)
Link copied to clipboard
open override fun onOpen(event: InventoryOpenEvent)
Link copied to clipboard
override fun open(player: HumanEntity)
Link copied to clipboard
fun openNextPage(player: HumanEntity)
Link copied to clipboard
fun openPreviousPage(player: HumanEntity)
Link copied to clipboard
Link copied to clipboard
fun setItem(slot: Int, item: ItemStack?)
Link copied to clipboard
fun storable(initialize: () -> List<ItemStack?> = { emptyList() }, canEdit: Boolean = true, save: (List<ItemStack?>) -> Unit = {})
fun storable(vararg slots: Int, initialize: () -> List<ItemStack?> = { emptyList() }, canEdit: Boolean = true, save: (List<ItemStack?>) -> Unit = {})
fun storable(slots: Iterable<Int>, initialize: () -> List<ItemStack?> = { emptyList() }, canEdit: Boolean = true, save: (List<ItemStack?>) -> Unit = {}): KtInventoryStorable