summaryrefslogtreecommitdiffstats
path: root/src/FurnaceRecipe.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-06-26 18:18:41 +0200
committerMattes D <github@xoft.cz>2014-06-26 18:18:41 +0200
commit55bbdfa5d44a4bf7e66aa256ceba9ded3d2682dd (patch)
tree4bf8ec7aec8aadb20aadf6916719d49293fef527 /src/FurnaceRecipe.h
parentFurnaceRecipe parser: Made the parser more forgiving. (diff)
downloadcuberite-55bbdfa5d44a4bf7e66aa256ceba9ded3d2682dd.tar
cuberite-55bbdfa5d44a4bf7e66aa256ceba9ded3d2682dd.tar.gz
cuberite-55bbdfa5d44a4bf7e66aa256ceba9ded3d2682dd.tar.bz2
cuberite-55bbdfa5d44a4bf7e66aa256ceba9ded3d2682dd.tar.lz
cuberite-55bbdfa5d44a4bf7e66aa256ceba9ded3d2682dd.tar.xz
cuberite-55bbdfa5d44a4bf7e66aa256ceba9ded3d2682dd.tar.zst
cuberite-55bbdfa5d44a4bf7e66aa256ceba9ded3d2682dd.zip
Diffstat (limited to '')
-rw-r--r--src/FurnaceRecipe.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/FurnaceRecipe.h b/src/FurnaceRecipe.h
index ab78b6051..77ed35a57 100644
--- a/src/FurnaceRecipe.h
+++ b/src/FurnaceRecipe.h
@@ -41,6 +41,14 @@ public:
private:
void ClearRecipes(void);
+ /** Parses the fuel contained in the line, adds it to m_pState's fuels.
+ Logs a warning to the console on input error. */
+ void AddFuelFromLine(const AString & a_Line, int a_LineNum);
+
+ /** Parses the recipe contained in the line, adds it to m_pState's recipes.
+ Logs a warning to the console on input error. */
+ void AddRecipeFromLine(const AString & a_Line, int a_LineNum);
+
/** Calls LOGWARN with the line, position, and error */
static void PrintParseError(unsigned int a_Line, size_t a_Position, const AString & a_CharactersMissing);