QtCraft API C++ classes QML types Handbook

QcDrinkDefinition Struct

Drunk with the use button like food is eaten (milk, decision E-500); it becomes emptiesTo. More...

Header: #include <common/content/items/QcItemDefinition.h>

Public Variables

bool clearsEffects
enum class QcDispenseAction { Throw, PlaceLiquid, Scoop, Equip, Ignite, Shoot }
enum class QcItemDial { None, Compass, Clock }
QcItemId
enum class QcMapItem { None, Empty, Filled }
const int qcItemDialCount
const int qcMapItemCount
const QcItemId qcNoItem

Detailed Description

Member Variable Documentation

bool QcDrinkDefinition::clearsEffects

Drinking it ends all status effects of the player (QcStatusEffects::clear).

Related Non-Members

enum class QcDispenseAction

What a Signal Dispenser does with the item (decision E-345).

Anything else is thrown out like a dropper does; seeds are thrown and plant themselves on farmland (decision E-294), never planted.

ConstantValueDescription
QcDrinkDefinition::QcDispenseAction::Throw0Thrown out like a dropper does (data name "throw", the default).
QcDrinkDefinition::QcDispenseAction::PlaceLiquid1A filled bucket pours its liquid (places) into the cell in front and becomes emptiesTo.
QcDrinkDefinition::QcDispenseAction::Scoop2An empty bucket (scoops) takes a liquid source in front.
QcDrinkDefinition::QcDispenseAction::Equip3Armour goes onto a player or armour stand in front with that slot free.
QcDrinkDefinition::QcDispenseAction::Ignite4Flint and steel (ignites) lights fire in the cell in front and wears by one (decision E-393).
QcDrinkDefinition::QcDispenseAction::Shoot5Ammunition (projectile) flies out of the front as that projectile (an arrow trap, decision E-621).

enum class QcItemDial

A dial the item shows while it is held (decision E-769): a compass needle pointing to the world spawn, a clock face with the time of day.

ConstantValueDescription
QcDrinkDefinition::QcItemDial::None0No dial.
QcDrinkDefinition::QcItemDial::Compass1A needle pointing to the world spawn (\c {"dial": "compass"}).
QcDrinkDefinition::QcItemDial::Clock2A face with the time of day (\c {"dial": "clock"}).

[alias] QcItemId

Runtime item id: index into the registry's item table. 0 is "no item" (empty slot).

enum class QcMapItem

A map (decision E-804): an empty map becomes its filled map (filledMap) of the land around the player when used; a filled map shows the land of its map id, which its stacks carry in QcItemStack::damage (decision E-798).

ConstantValueDescription
QcDrinkDefinition::QcMapItem::None0Not a map.
QcDrinkDefinition::QcMapItem::Empty1An empty map (\c {"map": "empty"}).
QcDrinkDefinition::QcMapItem::Filled2A filled map (\c {"map": "filled"}).

const int qcItemDialCount

Number of values of QcItemDial.

const int qcMapItemCount

Number of values of QcMapItem.

const QcItemId qcNoItem

The item id of an empty slot.