QtCraft API C++ classes QML types Handbook

QcChunkFurnishing Struct

What a world generator puts into the block entities of a chunk it made (decision E-520): the loot of its chests, the creature kinds of its spawners (dungeons, mine shafts, the showcase's dungeon station) and its minecarts. More...

Header: #include <worldgen/generators/QcChunkFurnishing.h>

Public Types

struct Cart
struct Chest

Public Functions

void add(const QcChunkFurnishing &other)
bool isEmpty() const

Public Variables

QList<QcChunkFurnishing::Cart> carts
QList<QcChunkFurnishing::Chest> chests
QList<QcStructureDefinition::Spawner> spawners

Detailed Description

The server puts it in once, when the chunk first arrives (QcFurnishing), and marks the chunk so that a chest emptied since is not filled again.

Member Function Documentation

void QcChunkFurnishing::add(const QcChunkFurnishing &other)

Appends the chests, spawners and carts of other (what another part of the generator furnishes the same chunk with).

bool QcChunkFurnishing::isEmpty() const

Returns whether there are no chests, spawners and carts.

Member Variable Documentation

QList<QcChunkFurnishing::Cart> QcChunkFurnishing::carts

The minecarts to place.

QList<QcChunkFurnishing::Chest> QcChunkFurnishing::chests

The chests to fill.

QList<QcStructureDefinition::Spawner> QcChunkFurnishing::spawners

The spawners to set up.