QcServerClient::Screen Struct
struct QcServerClient::ScreenThe screens the player has open and what the client was last told about them. More...
Public Variables
| std::optional<QcServerClient::Anvil> | anvil |
| quint32 | cart |
| std::optional<QcServerClient::Enchanting> | enchanting |
| std::optional<QcServerClient::HeldContainer> | held |
| std::optional<QcBlockPos> | open |
| std::optional<QcMsg::MachineState> | sent |
| std::optional<QcMsg::TradeState> | sentTrade |
| std::optional<QcBlockPos> | sign |
| std::optional<QcServerClient::Stonecutter> | stonecutter |
| quint32 | trading |
Detailed Description
Member Variable Documentation
std::optional<QcServerClient::Anvil> Screen::anvil
The anvil whose screen is open; never together with any of the above.
quint32 Screen::cart
A container minecart (entity id) instead of a block; open is unset then.
std::optional<QcServerClient::Enchanting> Screen::enchanting
The enchanting table whose screen is open; never together with any of the above.
std::optional<QcServerClient::HeldContainer> Screen::held
A backpack opened from the hand instead of a block or cart; open is unset and cart 0 then.
std::optional<QcBlockPos> Screen::open
The machine or container block whose screen is open.
std::optional<QcMsg::MachineState> Screen::sent
The machine screen as last sent.
std::optional<QcBlockPos> Screen::sign
The sign whose editor the server opened for the player (QcServerSigns, decision E-766).
std::optional<QcServerClient::Stonecutter> Screen::stonecutter
The stonecutter whose screen is open. It, a machine, chest or cart (open, cart) and a trade (trading) are never open at once: opening one closes the others (QcServerStonecutter::open, QcBlockScreens::open/openCart, QcServerTrading::open).