summaryrefslogtreecommitdiffstats
path: root/src/Entities/Player.h
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2018-07-13 00:10:15 +0200
committerpeterbell10 <peterbell10@live.co.uk>2018-07-13 00:10:15 +0200
commit2431b077cd2d99c7bf1fde4d3c93f937acef0cce (patch)
treebd882d8d90cc42e7f11de7739f7675820a627b45 /src/Entities/Player.h
parentfix dispenser pickup display bug (#4247) (diff)
downloadcuberite-2431b077cd2d99c7bf1fde4d3c93f937acef0cce.tar
cuberite-2431b077cd2d99c7bf1fde4d3c93f937acef0cce.tar.gz
cuberite-2431b077cd2d99c7bf1fde4d3c93f937acef0cce.tar.bz2
cuberite-2431b077cd2d99c7bf1fde4d3c93f937acef0cce.tar.lz
cuberite-2431b077cd2d99c7bf1fde4d3c93f937acef0cce.tar.xz
cuberite-2431b077cd2d99c7bf1fde4d3c93f937acef0cce.tar.zst
cuberite-2431b077cd2d99c7bf1fde4d3c93f937acef0cce.zip
Diffstat (limited to 'src/Entities/Player.h')
-rw-r--r--src/Entities/Player.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Entities/Player.h b/src/Entities/Player.h
index f04f90a2b..8fa463c5a 100644
--- a/src/Entities/Player.h
+++ b/src/Entities/Player.h
@@ -425,6 +425,10 @@ public:
is damaged by when used for a_Action */
void UseEquippedItem(cItemHandler::eDurabilityLostAction a_Action);
+ /** Damage the item in a_SlotNumber by a_Damage, possibly less if the
+ equipped item is enchanted. */
+ void UseItem(int a_SlotNumber, short a_Damage = 1);
+
void SendHealth(void);
void SendExperience(void);