PlayerInventory

@ApiStatus.Experimental
interface PlayerInventory<ItemStackT : Any>(source)

API to access player's inventory. Use items, equippedItems or storedItems to get items from inventory.

Since

0.8.0

Properties

Link copied to clipboard

Returns list containing all equipped items. Items may not be null.

Link copied to clipboard
open val items: List<ItemStackT>

Returns list containing all items from the inventory. Items may not be null.

Link copied to clipboard
abstract val storedItems: List<ItemStackT>

Returns list containing all not equipped items. Items may not be null.