Refreshable

abstract class Refreshable<T : KtInventory>(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: T): T?
Link copied to clipboard
fun refresh(player: HumanEntity, inventory: T)
fun refresh(player: HumanEntity, predicate: (T) -> Boolean = { true }): Boolean
Link copied to clipboard
fun refreshAll(predicate: (Player, T) -> Boolean = { _, _ -> true })