diff options
author | Mattes D <github@xoft.cz> | 2014-04-20 13:34:38 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-04-20 13:34:38 +0200 |
commit | f99bdfb457bc1e497dd74932611a91add72b4f27 (patch) | |
tree | c5f0b53b4208b96089788719dfe2a1115ca5804d /src/Item.h | |
parent | APIDump: Added a ChunkStay article. (diff) | |
parent | Fixed Code (diff) | |
download | cuberite-f99bdfb457bc1e497dd74932611a91add72b4f27.tar cuberite-f99bdfb457bc1e497dd74932611a91add72b4f27.tar.gz cuberite-f99bdfb457bc1e497dd74932611a91add72b4f27.tar.bz2 cuberite-f99bdfb457bc1e497dd74932611a91add72b4f27.tar.lz cuberite-f99bdfb457bc1e497dd74932611a91add72b4f27.tar.xz cuberite-f99bdfb457bc1e497dd74932611a91add72b4f27.tar.zst cuberite-f99bdfb457bc1e497dd74932611a91add72b4f27.zip |
Diffstat (limited to 'src/Item.h')
-rw-r--r-- | src/Item.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Item.h b/src/Item.h index 910ecb382..00316c188 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); // tolua_export + // tolua_begin short m_ItemType; |