Protocol: InventorySnapshot
Detached player inventory state captured by PlayerInventory.capture.
class InventorySnapshot(Protocol)
Related API: EquipmentSlot, ItemStack
Properties
slots
@property
def slots(self) -> Sequence[Optional[ItemStack]]:
Main-inventory slots in index order.
Related API: ItemStack
equipment
@property
def equipment(self) -> Mapping[EquipmentSlot, Optional[ItemStack]]:
Captured equipment, empty when equipment was not requested.
Related API: EquipmentSlot, ItemStack
selected_slot_index
@property
def selected_slot_index(self) -> Optional[int]:
Captured hotbar slot, or None when it was not requested.