QtCraft API C++ classes QML types Handbook

QcSmeltingRecipe Struct

Turns one input item into a result inside a machine of the same category (furnace: "smelting"); the stonecutter's recipes (decision E-784) have the category "stonecutting" and their own list. More...

Header: #include <common/content/recipes/QcSmeltingRecipe.h>

Public Variables

QString category
double experience
QString inputItem
QString kind
QString name
int resultCount
QString resultItem
double seconds

Static Public Members

const char *const defaultCategory
const double maxExperience
const double maxSeconds
const double minSeconds
const char *const stonecuttingCategory

Detailed Description

Member Variable Documentation

QString QcSmeltingRecipe::category

Category of the machines that use it ("category", default defaultCategory).

const char *const QcSmeltingRecipe::defaultCategory

Category of a recipe that names none: the furnace's.

double QcSmeltingRecipe::experience

Experience points per item smelted, gathered in the machine until a player takes the output (decision E-398). Server side only.

QString QcSmeltingRecipe::inputItem

Qualified name of the item it takes ("input", required).

QString QcSmeltingRecipe::kind

What is smelted ("food", "metal"; empty: anything else). Machines with kinds take only recipes of those kinds: the smoker food, the blast furnace metal (decision E-770).

const double QcSmeltingRecipe::maxExperience

Upper limit of experience.

const double QcSmeltingRecipe::maxSeconds

Upper limit of seconds.

const double QcSmeltingRecipe::minSeconds

Lower limit of seconds.

QString QcSmeltingRecipe::name

Qualified name ("name", required).

int QcSmeltingRecipe::resultCount

Items it makes per input item ("count" in "result", 1 to 64).

QString QcSmeltingRecipe::resultItem

Qualified name of the item it makes ("item" in "result", required).

double QcSmeltingRecipe::seconds

Burning time per item at machine speed 1.

const char *const QcSmeltingRecipe::stonecuttingCategory

Category of every stonecutting recipe; a smelting recipe may not name it.