get Top Inventory Paginated Sequence Entry
fun <T : AbstractKtInventoryPaginatedSequence<*>> getTopInventoryPaginatedSequenceEntry(clazz: KClass<T>, player: HumanEntity): AbstractKtInventoryPaginatedSequence.Entry<T>?
Gets the sequence-backed paginated inventory entry of the top inventory in the currently open inventory view.
Return
The top sequence-backed inventory entry of type T, or null if not found
Since
2.2.0
Parameters
clazz
The KClass of the sequence-backed inventory type
player
The player whose top inventory entry to check
Type Parameters
T
The sequence-backed inventory type
inline fun <T : AbstractKtInventoryPaginatedSequence<*>> getTopInventoryPaginatedSequenceEntry(player: HumanEntity): AbstractKtInventoryPaginatedSequence.Entry<T>?
Gets the sequence-backed paginated inventory entry of the top inventory in the currently open inventory view.
Return
The top sequence-backed 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 sequence-backed inventory type