refresh

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

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

Return

True if the refresh was successful, false otherwise

Since

2.0.0

Parameters

player

The player whose inventory should be refreshed

predicate

A function that determines whether an inventory should be refreshed. Returns true to refresh, false to skip.


abstract fun refresh(player: HumanEntity, inventory: T)

Refreshes the specified inventory for the player.

Return

True if the refresh was successful, false otherwise

Since

2.0.0

Parameters

player

The player whose inventory should be refreshed

inventory

The inventory to refresh