const cRecipe * GetRecipeFrom(const cItem &a_Ingredient) const
Returns a recipe for the specified input, nullptr if no recipe found.
int GetBurnTime(const cItem &a_Fuel) const
Returns the amount of time that the specified fuel burns, in ticks.
bool ParseItem(const AString &a_String, cItem &a_Item)
Parses an item string in the format "<ItemType>[: <Damage>][, <Amount>]", returns true if successful.
sFurnaceRecipeState * m_pState
bool IsFuel(const cItem &a_Item) const
Returns true if the item is a fuel, false if not.
void AddRecipeFromLine(const AString &a_Line, unsigned int a_LineNum)
Parses the recipe contained in the line, adds it to m_pState's recipes.
void AddFuelFromLine(const AString &a_Line, unsigned int a_LineNum)
Parses the fuel contained in the line, adds it to m_pState's fuels.
int BurnTime
How long this fuel burns, in ticks.
int CookTime
How long this recipe takes to smelt, in ticks.
float Reward
Experience reward for creating 1 of this item.