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.

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

Gets the holder of the top inventory in the currently open inventory view.

Link copied to clipboard

Gets the paginated inventory entry of the top inventory in the currently open inventory view.

Link copied to clipboard

Gets the condition-fetched paginated inventory entry of the top inventory in the currently open inventory view.

Link copied to clipboard

Gets the lazy-fetched paginated inventory entry of the top inventory in the currently open inventory view.

Link copied to clipboard

Gets the sequence-backed paginated inventory entry of the top inventory in the currently open inventory view.

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

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

Link copied to clipboard
inline fun <T : ParentInventory> getViewersDeeply(): Map<Player, T>
fun <T : ParentInventory> getViewersDeeply(clazz: KClass<T>): 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 entry of the specified type.

Link copied to clipboard

Gets all online players currently viewing a condition-fetched paginated inventory entry of the specified type.

Link copied to clipboard

Gets all online players currently viewing a lazy-fetched paginated inventory entry of the specified type.

Link copied to clipboard

Gets all online players currently viewing a sequence-backed paginated inventory entry of the specified type.