// SPDX-FileCopyrightText: 2026 Paula Wisnievski // SPDX-License-Identifier: AGPL-3.0-or-later import { Container, Cursor } from "@/common/inventory.ts"; import type { MenuSlotInfo } from "@/common/protocol.ts"; // the local copies of the containers the server syncs to this player export class ClientInventories { inventory = new Container(9 * 4); crafting = new Container(10); // the slots mods added to menu 0 and what's in them, see join's player_menu extra_slots: MenuSlotInfo[] = []; extra = new Container(0); cursor: Cursor = { item: undefined }; hotbar_selected = 0; }