refresh All
override fun refreshAll(predicate: (Player, AbstractKtInventoryPaginatedLazyFetched.Entry<*, C, *>) -> Boolean = { _, _ -> true })
Refreshes all inventories that match the given predicate.
Since
2.0.0
Parameters
predicate
A function that determines whether an inventory should be refreshed for a specific player. Takes a Player and inventory T as parameters and returns true to refresh, false to skip. Default predicate returns true for all cases.
fun refreshAll(behavior: AbstractKtInventoryPaginatedLazyFetched.Refreshable.RefreshBehavior = RefreshBehavior.OpenFirst, predicate: (Player, AbstractKtInventoryPaginatedLazyFetched.Entry<*, C, *>) -> Boolean = { _, _ -> true })
Refreshes inventory for all matching viewers.
Since
2.2.0
Parameters
behavior
Refresh behavior
predicate
Condition for refresh