QtCraft API C++ classes QML types Handbook

QcMovingBlock Struct

A block sliding where a piston moved it, as the clients see it (decisions E-337, E-364): the world holds the block at to already; the entity only shows the slide (QcMovingBlocks). More...

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

Public Variables

QcBlockId block
QcBlockPos from
quint64 start
QcBlockPos to

Static Public Members

const QcEntityKind entityKind

Detailed Description

Member Variable Documentation

QcBlockId QcMovingBlock::block

The block that slides.

const QcEntityKind QcMovingBlock::entityKind

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

quint64 QcMovingBlock::start

The tick the slide began.