summaryrefslogtreecommitdiffstats
path: root/src/Entities/Entity.h
diff options
context:
space:
mode:
authorchangyong guo <guo1487@163.com>2018-06-24 11:24:10 +0200
committerpeterbell10 <peterbell10@live.co.uk>2018-06-24 11:24:10 +0200
commit2d3013d1d35a2bcba63cffd9012898defff26f93 (patch)
treee344931e67b4094671e01a3bf7dca2d600e32d3e /src/Entities/Entity.h
parentFlush stdout after resetting console colour. (#4240) (diff)
downloadcuberite-2d3013d1d35a2bcba63cffd9012898defff26f93.tar
cuberite-2d3013d1d35a2bcba63cffd9012898defff26f93.tar.gz
cuberite-2d3013d1d35a2bcba63cffd9012898defff26f93.tar.bz2
cuberite-2d3013d1d35a2bcba63cffd9012898defff26f93.tar.lz
cuberite-2d3013d1d35a2bcba63cffd9012898defff26f93.tar.xz
cuberite-2d3013d1d35a2bcba63cffd9012898defff26f93.tar.zst
cuberite-2d3013d1d35a2bcba63cffd9012898defff26f93.zip
Diffstat (limited to '')
-rw-r--r--src/Entities/Entity.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Entities/Entity.h b/src/Entities/Entity.h
index 9abf75968..7ac12c95b 100644
--- a/src/Entities/Entity.h
+++ b/src/Entities/Entity.h
@@ -351,6 +351,9 @@ public:
/** Returns the currently equipped boots; empty item if none */
virtual cItem GetEquippedBoots(void) const { return cItem(); }
+ /** Returns the currently offhand equipped item; empty item if none */
+ virtual cItem GetOffHandEquipedItem(void) const { return cItem(); }
+
/** Applies damage to the armor after the armor blocked the given amount */
virtual void ApplyArmorDamage(int DamageBlocked);