QcMsg::EntitySpawn Struct
struct QcMsg::EntitySpawnServer -> client: an entity came into view, with its kind (decision E-365); a creature also names its type, an index into the content's mobs. More...
| Header: | #include <common/protocol/QcEntityMessages.h> |
Public Variables
| QcAppearance | appearance |
| QcBlockId | block |
| QcCreatureKindId | creatureType |
| QcEquipment | equipment |
| quint16 | flags |
| QcHanging | hanging |
| double | health |
| QcItemId | held |
| quint32 | id |
| QcItemStack | item |
| QcEntityKind | kind |
| QString | name |
| float | pitch |
| QcVec3 | position |
| QcStandPose | stand |
| float | yaw |
Detailed Description
Sent again for a known id when an item stack's count, a player's look or armour or a stand changes.
Member Variable Documentation
QcAppearance EntitySpawn::appearance
Players: their chosen look; villagers: the look the server gives them (decision E-411); armour stands: only its cape counts (decision E-239).
QcBlockId EntitySpawn::block
The block of a falling or moving block entity; air otherwise.
QcCreatureKindId EntitySpawn::creatureType
Creatures only: index into the content's mobs (at most QcStreamLimits::maxDefinitions).
QcEquipment EntitySpawn::equipment
Players and armour stands: what they wear, so others draw it (decision E-234); empty for the rest.
QcHanging EntitySpawn::hanging
Item frames and paintings only (decision E-790): where they hang and what they show; held names their own item (the client finds a painting's motifs there), item is the stack a frame holds.
double EntitySpawn::health
Players and creatures: their health; experience orbs: their value (decision E-398); primed explosives: the ticks of their fuse left (decision E-604).
quint32 EntitySpawn::id
The entity's id.
QcItemStack EntitySpawn::item
The stack of an item entity; projectiles: the item they look like (an arrow); empty for the other kinds.
QcEntityKind EntitySpawn::kind
The entity's kind.
QString EntitySpawn::name
Players: their name; armour stands and creatures: their custom name (empty for none).
QcVec3 EntitySpawn::position
The entity's position.
QcStandPose EntitySpawn::stand
Armour stands only: pose and what they show.
float EntitySpawn::yaw
Horizontal view angle in degrees.