QtCraft API C++ classes QML types Handbook

QcItemEntity Struct

A dropped item stack lying in the world (decision E-364); QcItemEntityManager moves, merges and ages them. More...

Header: #include <server/entities/QcItemEntity.h>
Inherits: QcEntity

Public Variables

double age
double pickupDelay
bool resting
QcItemStack stack
bool surplus

Static Public Members

const QcEntityKind entityKind

Detailed Description

Member Variable Documentation

double QcItemEntity::age

Seconds it has lain in a loaded chunk.

const QcEntityKind QcItemEntity::entityKind

The kind of every entity of this type (QcEntity::as).

double QcItemEntity::pickupDelay

Seconds before it can be picked up.

bool QcItemEntity::resting

Lying still on the ground: skipped by physics until the block below changes.

QcItemStack QcItemEntity::stack

The items.

bool QcItemEntity::surplus

Beyond QcServerLimits::itemsAwake in a loaded chunk: frozen and not sent to clients, until older items go.