RefreshableInventory

Interface for inventories that can be refreshed.

Since

2.0.0

Inheritors

Functions

Link copied to clipboard
abstract fun refresh(player: HumanEntity, inventory: T)

Refreshes the specified inventory for the player.

abstract fun refresh(player: HumanEntity, predicate: (T) -> Boolean = { true }): Boolean

Refreshes the inventory for the specified player based on a given predicate.

Link copied to clipboard
abstract fun refreshAll(predicate: (Player, T) -> Boolean = { _, _ -> true })

Refreshes all inventories that match the given predicate.