summaryrefslogtreecommitdiffstats
path: root/source/Item.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-11-10 18:41:26 +0100
committermadmaxoft <github@xoft.cz>2013-11-10 18:41:26 +0100
commitfe070129526178b8a0adbd3b64fc8ae1630c6a7a (patch)
treeedf519bb35ea1e8b9135ea5e171650d290366734 /source/Item.h
parentProtocol 1.7: Attempt at fixing SoundParticleEffect packet. (diff)
downloadcuberite-fe070129526178b8a0adbd3b64fc8ae1630c6a7a.tar
cuberite-fe070129526178b8a0adbd3b64fc8ae1630c6a7a.tar.gz
cuberite-fe070129526178b8a0adbd3b64fc8ae1630c6a7a.tar.bz2
cuberite-fe070129526178b8a0adbd3b64fc8ae1630c6a7a.tar.lz
cuberite-fe070129526178b8a0adbd3b64fc8ae1630c6a7a.tar.xz
cuberite-fe070129526178b8a0adbd3b64fc8ae1630c6a7a.tar.zst
cuberite-fe070129526178b8a0adbd3b64fc8ae1630c6a7a.zip
Diffstat (limited to 'source/Item.h')
-rw-r--r--source/Item.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/Item.h b/source/Item.h
index fee861050..c60d0542c 100644
--- a/source/Item.h
+++ b/source/Item.h
@@ -132,6 +132,9 @@ public:
/// Returns true if the item is stacked up to its maximum stacking.
bool IsFullStack(void) const;
+
+ /// Returns the maximum amount of stacked items of this type.
+ char GetMaxStackSize(void) const;
// tolua_end