QtCraft API C++ classes QML types Handbook

QcFallingBlock Struct

A block falling while nothing holds it (decision E-055, E-364); QcFallingBlockManager lets it fall and land. More...

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

Public Variables

double age
QcBlockId block
std::optional<double> startY

Static Public Members

const QcEntityKind entityKind

Detailed Description

Member Variable Documentation

double QcFallingBlock::age

Seconds it has fallen.

QcBlockId QcFallingBlock::block

The block that falls.

const QcEntityKind QcFallingBlock::entityKind

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

std::optional<double> QcFallingBlock::startY

The height it started falling from (an anvil's landing damage, decision E-866); unknown for blocks read from a save, which then count as not having fallen.