get Top Inventory Paginated Entry
fun <T : AbstractKtInventoryPaginated<*>> getTopInventoryPaginatedEntry(clazz: KClass<T>, player: HumanEntity): AbstractKtInventoryPaginated.Entry<T>?
Gets the paginated inventory entry of the top inventory in the currently open inventory view.
Return
The top paginated inventory entry of type T, or null if not found
Since
2.2.0
Parameters
clazz
The KClass of the paginated inventory type
player
The player whose top inventory entry to check
Type Parameters
T
The paginated inventory type
inline fun <T : AbstractKtInventoryPaginated<*>> getTopInventoryPaginatedEntry(player: HumanEntity): AbstractKtInventoryPaginated.Entry<T>?
Gets the paginated inventory entry of the top inventory in the currently open inventory view.
Return
The top paginated inventory entry of type T, or null if not found
Since
2.2.0
Parameters
player
The player whose top inventory entry to check
Type Parameters
T
The paginated inventory type