QtCraft API C++ classes QML types Handbook

<common/world/QcEntityKind.h>

Declarations at global scope in common/world/QcEntityKind.h. More...

Header: #include <common/world/QcEntityKind.h>

Types

enum class QcEntityKind { Player, Creature, Item, FallingBlock, ArmourStand, …, Boat }

Detailed Description

Type Documentation

enum class QcEntityKind

What an entity is (decision E-364): the server keeps every entity in the table of its kind, and the protocol names the kind of each entity it sends.

The values are part of the protocol.

ConstantValueDescription
QcEntityKind::Player0A player.
QcEntityKind::Creature1A creature of the content's mobs (EntitySpawn::creatureType names which).
QcEntityKind::Item2A dropped item stack.
QcEntityKind::FallingBlock3A block falling while nothing holds it (sand, gravel).
QcEntityKind::ArmourStand4An armour stand (decision E-238).
QcEntityKind::MovingBlock5A block sliding where a piston moves it (decision E-337), shown only.
QcEntityKind::Minecart6A cart that rolls along rails and carries a player (decision E-382).
QcEntityKind::ExperienceOrb7A ball of experience that flies to the nearest player (decision E-398).
QcEntityKind::Projectile8A shot in flight or stuck in a block (an arrow, decision E-425).
QcEntityKind::PrimedExplosive9A lit explosive counting down to its explosion (decision E-601), drawn as its block.
QcEntityKind::Hanging10An item frame or a painting on a block face (decision E-790).
QcEntityKind::Boat11A boat that floats on water and carries a player and a creature (decision E-920).