diff options
author | Mattes D <github@xoft.cz> | 2014-05-06 21:46:50 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-05-06 21:46:50 +0200 |
commit | 66c5c81e02dd9350542e1dd65b8e33c2f45a011b (patch) | |
tree | e719f55d50354e881c8ace1ca83516596519abaf /src/Enchantments.cpp | |
parent | Merge pull request #927 from mc-server/fixes (diff) | |
parent | Rename CanRepairWithItem to CanRepairWithRawMaterial and rename Size() to Count() (diff) | |
download | cuberite-66c5c81e02dd9350542e1dd65b8e33c2f45a011b.tar cuberite-66c5c81e02dd9350542e1dd65b8e33c2f45a011b.tar.gz cuberite-66c5c81e02dd9350542e1dd65b8e33c2f45a011b.tar.bz2 cuberite-66c5c81e02dd9350542e1dd65b8e33c2f45a011b.tar.lz cuberite-66c5c81e02dd9350542e1dd65b8e33c2f45a011b.tar.xz cuberite-66c5c81e02dd9350542e1dd65b8e33c2f45a011b.tar.zst cuberite-66c5c81e02dd9350542e1dd65b8e33c2f45a011b.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Enchantments.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Enchantments.cpp b/src/Enchantments.cpp index 64f89815b..264878c22 100644 --- a/src/Enchantments.cpp +++ b/src/Enchantments.cpp @@ -83,6 +83,15 @@ void cEnchantments::AddFromString(const AString & a_StringSpec) +size_t cEnchantments::Count(void) +{ + return m_Enchantments.size(); +} + + + + + AString cEnchantments::ToString(void) const { // Serialize all the enchantments into a string |