QtCraft API C++ classes QML types Handbook

QcMsg::SpawnerDisplay Struct

struct QcMsg::SpawnerDisplay

Server -> client: the creature kind shown spinning in the monster spawner at pos (decision E-520), sent after the ChunkData of its chunk and whenever it changes; mob is the kind's index in the content, -1 for none (an empty cage, or the spawner is gone). More...

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

Public Variables

qint32 mob
QcBlockPos pos

Detailed Description

Member Variable Documentation

qint32 SpawnerDisplay::mob

The creature kind shown (see the struct).

QcBlockPos SpawnerDisplay::pos

The spawner's block.