summaryrefslogtreecommitdiffstats
path: root/src/Item.h
diff options
context:
space:
mode:
authordaniel0916 <theschokolps@gmail.com>2014-04-17 13:15:35 +0200
committerdaniel0916 <theschokolps@gmail.com>2014-04-17 13:15:35 +0200
commitf9343a8490b50cb28a62c7327c0013da48ca2745 (patch)
tree7951063e6dd38b923d2ef91ae8a8db41628f42e7 /src/Item.h
parentFixed conflicting enchantments checking (diff)
downloadcuberite-f9343a8490b50cb28a62c7327c0013da48ca2745.tar
cuberite-f9343a8490b50cb28a62c7327c0013da48ca2745.tar.gz
cuberite-f9343a8490b50cb28a62c7327c0013da48ca2745.tar.bz2
cuberite-f9343a8490b50cb28a62c7327c0013da48ca2745.tar.lz
cuberite-f9343a8490b50cb28a62c7327c0013da48ca2745.tar.xz
cuberite-f9343a8490b50cb28a62c7327c0013da48ca2745.tar.zst
cuberite-f9343a8490b50cb28a62c7327c0013da48ca2745.zip
Diffstat (limited to 'src/Item.h')
-rw-r--r--src/Item.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Item.h b/src/Item.h
index 910ecb382..987dea2a9 100644
--- a/src/Item.h
+++ b/src/Item.h
@@ -175,6 +175,13 @@ public:
/** Returns true if the specified item type is enchantable (as per 1.2.5 protocol requirements) */
static bool IsEnchantable(short a_ItemType); // tolua_export
+ /** Returns the enchantability of the item. When the item hasn't a enchantability, it will returns 0 */
+ int GetEnchantability(); // tolua_export
+
+ /** Enchants the item using the specified number of XP levels.
+ Returns true if item enchanted, false if not. */
+ bool EnchantByXPLevels(int a_NumXPLevels, cPlayer & a_Player, bool a_BlockConflictingEnchantments, bool a_DeleteLevelFromPlayer); // tolua_export
+
// tolua_begin
short m_ItemType;