get All Viewers
Deprecated
Deprecated in v2.2.0. Will be removed in v2.5.0. Use getViewers instead.
Replace with
import dev.s7a.ktinventory.util.getViewers
Content copied to clipboard
getViewers(clazz)Content copied to clipboard
Gets all online players currently viewing an inventory of the specified type.
Return
Map of players to their open inventories of type T
Since
2.0.0
Parameters
clazz
The KClass of the inventory type
Type Parameters
T
The type of inventory extending AbstractKtInventory
Deprecated
Deprecated in v2.2.0. Will be removed in v2.5.0. Use getViewers instead.
Replace with
import dev.s7a.ktinventory.util.getViewers
Content copied to clipboard
getViewers<T>()Content copied to clipboard
Gets all online players currently viewing an inventory of the specified type.
Return
Map of players to their open inventories of type T
Since
2.0.0
Type Parameters
T
The type of inventory extending AbstractKtInventory