SoulFire TypeScript SDK 2.10.3
    Preparing search index...

    Type Alias SlotRegion

    SlotRegion: Message<"soulfire.v1.SlotRegion"> & {
        columns: number;
        id: string;
        label: string;
        slotCount: number;
        startIndex: number;
        type: SlotRegionType;
    }

    A group of slots that should be rendered together in the UI. Defines the layout grid for a section of the inventory.

    Type Declaration

    • columns: number

      Number of columns for grid layout. Common values: 9 (standard inventory width), 3 (dispenser), 1 (armor column)

      from field: int32 columns = 5;

    • id: string

      Unique identifier for this region within the container. Examples: "container", "player_inventory", "player_hotbar", "crafting_output"

      from field: string id = 1;

    • label: string

      Display label for this region. Examples: "Chest", "Inventory", "Hotbar", "Crafting Grid"

      from field: string label = 2;

    • slotCount: number

      Total number of slots in this region.

      from field: int32 slot_count = 4;

    • startIndex: number

      First slot index belonging to this region. Slots are numbered sequentially from 0 across all regions.

      from field: int32 start_index = 3;

    • type: SlotRegionType

      The type of region, affecting rendering behavior.

      from field: soulfire.v1.SlotRegionType type = 6;

    from message soulfire.v1.SlotRegion