SoulFire TypeScript SDK 2.10.3
    Preparing search index...

    Type Alias BotInventoryStateResponse

    BotInventoryStateResponse: Message<"soulfire.v1.BotInventoryStateResponse"> & {
        carriedItem?: InventorySlot;
        layout?: ContainerLayout;
        selectedHotbarSlot: number;
        slots: InventorySlot[];
    }

    Response containing the current inventory/container state.

    Type Declaration

    • OptionalcarriedItem?: InventorySlot

      Item currently held on the cursor (being moved). Absent if cursor is empty.

      from field: optional soulfire.v1.InventorySlot carried_item = 3;

    • Optionallayout?: ContainerLayout

      Layout information describing the container structure.

      from field: soulfire.v1.ContainerLayout layout = 1;

    • selectedHotbarSlot: number

      Currently selected hotbar slot index (0-8).

      from field: int32 selected_hotbar_slot = 4;

    • slots: InventorySlot[]

      All slots containing items (empty slots are omitted).

      from field: repeated soulfire.v1.InventorySlot slots = 2;

    from message soulfire.v1.BotInventoryStateResponse