QcMsg::MachineState Struct
struct QcMsg::MachineStateServer -> client: contents and progress of the open machine. More...
| Header: | #include <common/protocol/QcMachineMessages.h> |
Public Variables
Static Public Members
Detailed Description
stacks are input, fuel and output; burn is the share of the current fuel left and progress the share of the current item done. For a storage block, stacks are its slots and the bars stay at 0.
Member Variable Documentation
float MachineState::burn
The share of the current fuel left (see the struct).
quint32 MachineState::entity
The container minecart of the screen (OpenMachine::entity); 0 for a block.
const int MachineState::maxSlots
The most slots; the decoder refuses more.
QcBlockPos MachineState::pos
The block of the machine or chest.
float MachineState::progress
The share of the current item done (see the struct).
const int MachineState::slotCount
The slots of a machine: input, fuel and output.
QList<QcItemStack> MachineState::stacks
The slots (see the struct).