diff options
author | Mattes D <github@xoft.cz> | 2014-06-26 18:18:41 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-06-26 18:18:41 +0200 |
commit | 55bbdfa5d44a4bf7e66aa256ceba9ded3d2682dd (patch) | |
tree | 4bf8ec7aec8aadb20aadf6916719d49293fef527 /src/FurnaceRecipe.h | |
parent | FurnaceRecipe parser: Made the parser more forgiving. (diff) | |
download | cuberite-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.h | 8 |
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); |