QtCraft API C++ classes QML types Handbook

QcBlockEntityKept Struct

What the saved block entities of a chunk hold that this version does not read (decision E-440), held per chunk by QcServerWorld while the chunk is loaded and written back unchanged: tables of unknown ids and the tails of newer versions of known tables (tables, QcComponentFrames), and the tails of entries of a newer version (entries, by position; each component's id is its table). More...

Header: #include <server/storage/QcBlockEntityRecord.h>

Public Functions

const QcEntityComponent *entryTail(quint16 table, QcBlockPos pos) const
bool isEmpty() const

Public Variables

QHash<QcBlockPos, QcEntityComponents> entries
QcEntityComponents tables

Detailed Description

An entry's tail goes back while the world has an entry of that table at its position.

Member Function Documentation

const QcEntityComponent *QcBlockEntityKept::entryTail(quint16 table, QcBlockPos pos) const

Returns the kept tail of the entry of table at pos, if any.

bool QcBlockEntityKept::isEmpty() const

Returns whether nothing is kept.

Member Variable Documentation

QHash<QcBlockPos, QcEntityComponents> QcBlockEntityKept::entries

The tails of entries of a newer version, by position.

QcEntityComponents QcBlockEntityKept::tables

Tables of unknown ids and the tails of newer versions of known tables.