Type alias inventory

inventory: {
    armor: {
        boots?: Slot;
        chestplate?: Slot;
        helmet?: Slot;
        leggings?: Slot;
    };
    crafting: {
        slots: {
            0?: Slot;
            1?: Slot;
            2?: Slot;
            3?: Slot;
        };
        output?: Slot;
    };
    hotbar: {
        0?: Slot;
        1?: Slot;
        2?: Slot;
        3?: Slot;
        4?: Slot;
        5?: Slot;
        6?: Slot;
        7?: Slot;
        8?: Slot;
    };
    slots: {
        [slot: number]: Slot | undefined;
    };
    cursor?: Slot;
    offhand?: Slot;
}

Type declaration

  • Readonly armor: {
        boots?: Slot;
        chestplate?: Slot;
        helmet?: Slot;
        leggings?: Slot;
    }
    • Optional Readonly boots?: Slot
    • Optional Readonly chestplate?: Slot
    • Optional Readonly helmet?: Slot
    • Optional Readonly leggings?: Slot
  • Readonly crafting: {
        slots: {
            0?: Slot;
            1?: Slot;
            2?: Slot;
            3?: Slot;
        };
        output?: Slot;
    }
    • Readonly slots: {
          0?: Slot;
          1?: Slot;
          2?: Slot;
          3?: Slot;
      }
    • Optional Readonly output?: Slot
  • Readonly hotbar: {
        0?: Slot;
        1?: Slot;
        2?: Slot;
        3?: Slot;
        4?: Slot;
        5?: Slot;
        6?: Slot;
        7?: Slot;
        8?: Slot;
    }
  • Readonly slots: {
        [slot: number]: Slot | undefined;
    }
    • [slot: number]: Slot | undefined
  • Optional Readonly cursor?: Slot
  • Optional Readonly offhand?: Slot