get Open Inventory Paginated
fun <T : AbstractKtInventoryPaginated<*>> getOpenInventoryPaginated(clazz: KClass<T>, player: HumanEntity): AbstractKtInventoryPaginated.Entry<T>?
Deprecated
Deprecated in v2.2.0. Will be removed in v2.5.0. Use getTopInventoryPaginatedEntry instead.
Replace with
import dev.s7a.ktinventory.util.getTopInventoryPaginatedEntry
Content copied to clipboard
getTopInventoryPaginatedEntry(clazz, player)Content copied to clipboard
Gets the currently open paginated inventory entry of the specified type for a player.
Return
The open paginated inventory entry of type T, or null if not found
Since
2.0.0
Parameters
clazz
The KClass of the inventory type
player
The player whose inventory to check
Type Parameters
T
The type of inventory extending AbstractKtInventoryPaginated
inline fun <T : AbstractKtInventoryPaginated<*>> getOpenInventoryPaginated(player: HumanEntity): AbstractKtInventoryPaginated.Entry<T>?
Deprecated
Deprecated in v2.2.0. Will be removed in v2.5.0. Use getTopInventoryPaginatedEntry instead.
Replace with
import dev.s7a.ktinventory.util.getTopInventoryPaginatedEntry
Content copied to clipboard
getTopInventoryPaginatedEntry<T>(player)Content copied to clipboard
Gets the currently open paginated inventory entry of the specified type for a player.
Return
The open paginated inventory entry of type T, or null if not found
Since
2.0.0
Parameters
player
The player whose inventory to check
Type Parameters
T
The type of inventory extending AbstractKtInventoryPaginated