QtCraft API C++ classes QML types Handbook

QcSpawnerContent Namespace

Checks what spawners, dungeons and loot tables name (decisions E-520..E-522) when the content is finished, and which creature kinds a spawner may bring forth at all. More...

Header: #include <common/content/blockbehaviour/QcSpawnerContent.h>

Functions

QString refusal(const QcMobDefinition &mob)
QStringList resolve(QcContentRegistry &content)

Detailed Description

Function Documentation

QString QcSpawnerContent::refusal(const QcMobDefinition &mob)

Returns why creatures of mob never come from a spawner, empty when they may: villagers belong to a village and are kept with the world, which a spawner's creatures are not; water creatures (fish) need water, which a spawner's cells (room for the body, ground below) never are.

QStringList QcSpawnerContent::resolve(QcContentRegistry &content)

Resolves the spawner references of content and returns the warnings: for unknown or refused kinds of the dungeons (those entries are dropped; without any left the dungeons are off), of the mine shafts (their spawners are switched off), of spawner blocks and of structures' spawners (those spawn nothing); for unknown loot tables of the dungeons, mine shafts and structures (their chests and carts stay empty); for a mine shaft cart item that places no minecart and for structures that do not fit a mine shaft room; and for unknown items of loot tables (they give nothing).