summaryrefslogtreecommitdiffstats
path: root/source/Enchantments.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-06-04 13:54:44 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-06-04 13:54:44 +0200
commitdcc3af0704f63caefd39d8488f8c6ff28c208bfd (patch)
treedb55bd48c83bc55d37f80a8a108beabbb938ec1c /source/Enchantments.h
parentItemGrid: fixed changing item count when ToRemove == CurrentCount (diff)
downloadcuberite-dcc3af0704f63caefd39d8488f8c6ff28c208bfd.tar
cuberite-dcc3af0704f63caefd39d8488f8c6ff28c208bfd.tar.gz
cuberite-dcc3af0704f63caefd39d8488f8c6ff28c208bfd.tar.bz2
cuberite-dcc3af0704f63caefd39d8488f8c6ff28c208bfd.tar.lz
cuberite-dcc3af0704f63caefd39d8488f8c6ff28c208bfd.tar.xz
cuberite-dcc3af0704f63caefd39d8488f8c6ff28c208bfd.tar.zst
cuberite-dcc3af0704f63caefd39d8488f8c6ff28c208bfd.zip
Diffstat (limited to 'source/Enchantments.h')
-rw-r--r--source/Enchantments.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/Enchantments.h b/source/Enchantments.h
index 002626413..0b720c4e1 100644
--- a/source/Enchantments.h
+++ b/source/Enchantments.h
@@ -87,6 +87,9 @@ public:
/// Converts enchantment name to the numeric representation; returns -1 if enchantment name not found; case insensitive
static int StringToEnchantmentID(const AString & a_EnchantmentName);
+ /// Returns true if a_Other contains exactly the same enchantments and levels
+ bool operator ==(const cEnchantments & a_Other) const;
+
// tolua_end
/// Writes the enchantments into the specified NBT writer; begins with the LIST tag of the specified name ("ench" or "StoredEnchantments")