Package-level declarations

Functions

Link copied to clipboard
inline fun <T : AbstractKtInventory> getAllViewers(): Map<Player, T>
fun <T : AbstractKtInventory> getAllViewers(clazz: KClass<T>): Map<Player, T>

Gets all online players currently viewing an inventory of the specified type.

Link copied to clipboard
inline fun <T : ParentInventory> getAllViewersDeeply(): Map<Player, T>

Gets all online players currently viewing an inventory or child inventory of the specified parent type. This function searches through the inventory hierarchy to find parent inventories of the specified type.

Link copied to clipboard

Gets all online players currently viewing a paginated inventory of the specified type.

Link copied to clipboard
inline fun <T : AbstractKtInventory> getOpenInventory(player: HumanEntity): T?
fun <T : AbstractKtInventory> getOpenInventory(clazz: KClass<T>, player: HumanEntity): T?

Gets the currently open inventory of the specified type for a player.

Link copied to clipboard

Gets the currently open paginated inventory entry of the specified type for a player.