diff options
Diffstat (limited to 'src/Protocol/RecipeMapper.h')
-rw-r--r-- | src/Protocol/RecipeMapper.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/Protocol/RecipeMapper.h b/src/Protocol/RecipeMapper.h index 1cac62f92..bf93cec4f 100644 --- a/src/Protocol/RecipeMapper.h +++ b/src/Protocol/RecipeMapper.h @@ -12,7 +12,7 @@ directory, e.g. `Server/Protocol/1.12.2/base.recipes.txt` */ class cRecipeMapper { -public: + public: cRecipeMapper(void); ~cRecipeMapper(); @@ -22,7 +22,7 @@ public: /** Translates the protocol specific RecipeId to the cuberite RecipeId */ std::optional<UInt32> GetCuberiteRecipeId(UInt32 a_ProtocolRecipeId, UInt32 a_ProtocolVersion); -private: + private: /** A mapping for each protocol from the protocol specific RecipeId and the cuberite RecipeId */ std::map<AString, std::map<UInt32, UInt32>> m_ProtocolVersionMap; @@ -30,6 +30,10 @@ private: void loadRecipes(const AString & a_ProtocolVersion); /** Handles a single line of the protocol specific mapping file */ - void AddRecipeLine(const AString & a_ProtocolVersion, int a_LineNum, const AString & a_RecipeLine, const std::map<AString, UInt32> & a_RecipeNameMap); - + void AddRecipeLine( + const AString & a_ProtocolVersion, + int a_LineNum, + const AString & a_RecipeLine, + const std::map<AString, UInt32> & a_RecipeNameMap + ); }; |