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 |
Related Non-Members
| 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.
| Constant | Value | Description |
|---|---|---|
QcDrinkDefinition::QcDispenseAction::Throw | 0 | Thrown out like a dropper does (data name "throw", the default). |
QcDrinkDefinition::QcDispenseAction::PlaceLiquid | 1 | A filled bucket pours its liquid (places) into the cell in front and becomes emptiesTo. |
QcDrinkDefinition::QcDispenseAction::Scoop | 2 | An empty bucket (scoops) takes a liquid source in front. |
QcDrinkDefinition::QcDispenseAction::Equip | 3 | Armour goes onto a player or armour stand in front with that slot free. |
QcDrinkDefinition::QcDispenseAction::Ignite | 4 | Flint and steel (ignites) lights fire in the cell in front and wears by one (decision E-393). |
QcDrinkDefinition::QcDispenseAction::Shoot | 5 | Ammunition (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.
| Constant | Value | Description |
|---|---|---|
QcDrinkDefinition::QcItemDial::None | 0 | No dial. |
QcDrinkDefinition::QcItemDial::Compass | 1 | A needle pointing to the world spawn (\c {"dial": "compass"}). |
QcDrinkDefinition::QcItemDial::Clock | 2 | A 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).
| Constant | Value | Description |
|---|---|---|
QcDrinkDefinition::QcMapItem::None | 0 | Not a map. |
QcDrinkDefinition::QcMapItem::Empty | 1 | An empty map (\c {"map": "empty"}). |
QcDrinkDefinition::QcMapItem::Filled | 2 | A 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.