summaryrefslogtreecommitdiffstats
path: root/src/Item.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-01-16 19:44:11 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-01-16 19:44:11 +0100
commit5d03e49c138ad45486452a5ecaebf162a4882c71 (patch)
tree11e9067d0af146b6c907779fb0e5e0d37f9558fd /src/Item.h
parentMerge remote-tracking branch 'origin/master' into customnames (diff)
downloadcuberite-5d03e49c138ad45486452a5ecaebf162a4882c71.tar
cuberite-5d03e49c138ad45486452a5ecaebf162a4882c71.tar.gz
cuberite-5d03e49c138ad45486452a5ecaebf162a4882c71.tar.bz2
cuberite-5d03e49c138ad45486452a5ecaebf162a4882c71.tar.lz
cuberite-5d03e49c138ad45486452a5ecaebf162a4882c71.tar.xz
cuberite-5d03e49c138ad45486452a5ecaebf162a4882c71.tar.zst
cuberite-5d03e49c138ad45486452a5ecaebf162a4882c71.zip
Diffstat (limited to 'src/Item.h')
-rw-r--r--src/Item.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Item.h b/src/Item.h
index a59ab0348..97c4c2ba2 100644
--- a/src/Item.h
+++ b/src/Item.h
@@ -134,6 +134,9 @@ public:
bool IsCustomNameEmpty(void) const { return (m_CustomName.empty()); }
bool IsLoreEmpty(void) const { return (m_Lore.empty()); }
+
+ /** Copies specified internal variables from another item to this item */
+ void CustomCopy(cItem & a_OtherItem, bool a_CopyType, bool a_CopyCount, bool a_CopyDamage, bool a_CopyEnchantments, bool a_CopyCustomName, bool a_CopyLore);
/// Returns a copy of this item with m_ItemCount set to 1. Useful to preserve enchantments etc. on stacked items