QcStandProperties Namespace
The properties of an armour stand that commands, structures and a later stand screen change (decision E-239), each checked here: "pose <part> <x> <y> <z>" (angles finite, normalised), "rotation <degrees>", "arms|plate|small|showname <true|false>", "name [text]" (cleaned, at most QcArmourStandManager::maxNameLength code points), "equip <set|item>" (armour into its slot, anything else into the hand), "cape <cape|none>" (an appearance of the kind cape), "clear" (takes everything off, the cape too) and "reset" (pose and flags). More...
| Header: | #include <server/gameplay/QcStandProperties.h> |
Functions
| bool | apply(const QcContentRegistry &content, QcArmourStand &stand, const QStringList &args) |
| bool | applyLine(const QcContentRegistry &content, QcArmourStand &stand, const QString &line) |
| QList<QcItemStack> | itemsNamed(const QcContentRegistry &content, const QString &name) |
| QString | standItem(const QcContentRegistry &content) |
Detailed Description
Function Documentation
bool QcStandProperties::apply(const QcContentRegistry &content, QcArmourStand &stand, const QStringList &args)
Applies one property (args[0], then its values in args) to stand, items read from content. Returns false (and the stand partly unchanged) when the property or a value is invalid.
bool QcStandProperties::applyLine(const QcContentRegistry &content, QcArmourStand &stand, const QString &line)
Applies the property of a line of words ("pose head 10 0 0") to stand like apply(), with the items of content. Returns false when the property or a value is invalid.
QList<QcItemStack> QcStandProperties::itemsNamed(const QcContentRegistry &content, const QString &name)
Returns the armour items of content of the set name (qtcraft:iron), else the one item of that name; empty when there is none.
QString QcStandProperties::standItem(const QcContentRegistry &content)
Returns the item stands of structures drop: the first item of content (content order) that places a stand; empty when the content has none (such stands drop only what they wear and hold).