Skip to main content

TypedDict: InventoryLoadout

Player inventory, equipment, and selected slot applied as one loadout.

class InventoryLoadout(TypedDict)

Related API: EquipmentSlot, ItemStack

Properties

slots

slots: NotRequired[Mapping[int, Optional[ItemStack]]]

Inventory slots keyed by zero-based slot index.

Related API: ItemStack

equipment

equipment: NotRequired[Mapping[EquipmentSlot, Optional[ItemStack]]]

Equipment values keyed by public equipment slot.

Related API: EquipmentSlot, ItemStack

selected_slot_index

selected_slot_index: NotRequired[int]

Selected hotbar slot to apply.