KtInventory

abstract class KtInventory(plugin: Plugin, val line: Int) : KtInventoryBase, InventoryHolder

Inheritors

Constructors

Link copied to clipboard
constructor(plugin: Plugin, line: Int)

Properties

Link copied to clipboard
Link copied to clipboard
val line: Int
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<KtInventory>) -> Unit = {})
fun button(vararg slot: Int, itemStack: ItemStack, onClick: (KtInventoryButton.ClickEvent<KtInventory>) -> Unit = {})
fun button(slots: Iterable<Int>, itemStack: ItemStack, onClick: (KtInventoryButton.ClickEvent<KtInventory>) -> Unit = {})
Link copied to clipboard
Link copied to clipboard
override fun getInventory(): Inventory
Link copied to clipboard
fun getItem(slot: Int): ItemStack?
Link copied to clipboard
fun handleClick(event: InventoryClickEvent)
Link copied to clipboard
open fun onClick(event: InventoryClickEvent)
Link copied to clipboard
open fun onClose(event: InventoryCloseEvent)
Link copied to clipboard
open fun onOpen(event: InventoryOpenEvent)
Link copied to clipboard
override fun open(player: HumanEntity)
Link copied to clipboard
open override fun refresh()
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
Link copied to clipboard
abstract fun title(): String