Refreshable

abstract class Refreshable<T : KtInventoryPaginated>(val clazz: KClass<T>)

Constructors

Link copied to clipboard
constructor(clazz: KClass<T>)

Properties

Link copied to clipboard
val clazz: KClass<T>

Functions

Link copied to clipboard
abstract fun createNew(player: HumanEntity, inventory: KtInventoryPaginated.Entry<T>): T?
Link copied to clipboard
fun refresh(player: HumanEntity, inventory: KtInventoryPaginated.Entry<T>, behavior: KtInventoryPaginated.Refreshable.RefreshBehavior = RefreshBehavior.OpenFirst)
fun refresh(player: HumanEntity, behavior: KtInventoryPaginated.Refreshable.RefreshBehavior = RefreshBehavior.OpenFirst, predicate: (KtInventoryPaginated.Entry<T>) -> Boolean = { true }): Boolean
Link copied to clipboard
fun refreshAll(behavior: KtInventoryPaginated.Refreshable.RefreshBehavior = RefreshBehavior.OpenFirst, predicate: (Player, KtInventoryPaginated.Entry<T>) -> Boolean = { _, _ -> true })