Skip to main content

Interface: InventorySnapshot

Detached player inventory state captured by PlayerInventory.capture.

Properties

equipment

readonly equipment: Readonly<Record<EquipmentSlot, ItemStack | null>>

Captured equipment, empty when equipment was not requested.


selectedSlotIndex

readonly selectedSlotIndex: number | null

Captured hotbar slot, or null when it was not requested.


slots

readonly slots: readonly (ItemStack | null)[]

Main-inventory slots in index order.