QtCraft API C++ classes QML types Handbook

QcServerClient::HeldContainer Struct

struct QcServerClient::HeldContainer

The machine, container or villager whose screen the player has open, and what the client was last told about it. More...

Detailed Description

A portable container opened from the hand (a backpack, decision E-833): the hotbar slot that holds it, locked while open, and its slots as a working copy of the item's contents, filled from the item whenever the screen is used (QcBlockScreens::openContainerOf) and written back into it by QcServerInventory.