QtCraft API C++ classes QML types Handbook

QcMsg::AnvilState Struct

struct QcMsg::AnvilState

Server -> client: the open anvil's slots, the name in its name field, what it would make and the levels that costs (QcAnvil::Result; 0 and an empty output for nothing). More...

Header: #include <common/protocol/QcMachineMessages.h>

Public Variables

QcItemStack left
qint32 levelCost
QString name
QcItemStack output
QcItemStack right

Detailed Description

Member Variable Documentation

QcItemStack AnvilState::left

The left slot.

qint32 AnvilState::levelCost

The levels that costs; 0 for nothing.

QString AnvilState::name

The text in the name field.

QcItemStack AnvilState::output

What the anvil would make; empty for nothing.

QcItemStack AnvilState::right

The right slot.