<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.
| Constant | Value | Description |
|---|---|---|
QcEntityKind::Player | 0 | A player. |
QcEntityKind::Creature | 1 | A creature of the content's mobs (EntitySpawn::creatureType names which). |
QcEntityKind::Item | 2 | A dropped item stack. |
QcEntityKind::FallingBlock | 3 | A block falling while nothing holds it (sand, gravel). |
QcEntityKind::ArmourStand | 4 | An armour stand (decision E-238). |
QcEntityKind::MovingBlock | 5 | A block sliding where a piston moves it (decision E-337), shown only. |
QcEntityKind::Minecart | 6 | A cart that rolls along rails and carries a player (decision E-382). |
QcEntityKind::ExperienceOrb | 7 | A ball of experience that flies to the nearest player (decision E-398). |
QcEntityKind::Projectile | 8 | A shot in flight or stuck in a block (an arrow, decision E-425). |
QcEntityKind::PrimedExplosive | 9 | A lit explosive counting down to its explosion (decision E-601), drawn as its block. |
QcEntityKind::Hanging | 10 | An item frame or a painting on a block face (decision E-790). |
QcEntityKind::Boat | 11 | A boat that floats on water and carries a player and a creature (decision E-920). |