QtCraft API C++ classes QML types Handbook

QcChunkCommands Class

Chunks kept loaded on purpose (decision E-377): /forceload add|remove|query, by block coordinates (~ relative to the player) of one chunk or of the corners of an area. More...

Header: #include <server/commands/QcChunkCommands.h>

Public Functions

void addTo(QcCommandRegistry &registry)

Static Public Members

const int maxArea

Detailed Description

Forced chunks are kept in world.json and count against the limit forcedChunks; they load and stay like chunks around a player, with the groups of their circuits.

Member Function Documentation

void QcChunkCommands::addTo(QcCommandRegistry &registry)

Adds the commands of this group (see the class) to registry.

Member Variable Documentation

const int QcChunkCommands::maxArea

Chunks one /forceload adds or removes at most.