summaryrefslogtreecommitdiffstats
path: root/src/Entities/Player.h
diff options
context:
space:
mode:
authorPokechu22 <pokechu022@gmail.com>2017-01-03 21:19:29 +0100
committerMattes D <github@xoft.cz>2017-01-03 21:19:29 +0100
commit9c2a0bb7b9e2d8402813f4755398884a801fec59 (patch)
treeaafb4b43ee81c59eea01d06b725e04e332ca36ea /src/Entities/Player.h
parentDebuggers: PluginStats are now output only on request. (#3513) (diff)
downloadcuberite-9c2a0bb7b9e2d8402813f4755398884a801fec59.tar
cuberite-9c2a0bb7b9e2d8402813f4755398884a801fec59.tar.gz
cuberite-9c2a0bb7b9e2d8402813f4755398884a801fec59.tar.bz2
cuberite-9c2a0bb7b9e2d8402813f4755398884a801fec59.tar.lz
cuberite-9c2a0bb7b9e2d8402813f4755398884a801fec59.tar.xz
cuberite-9c2a0bb7b9e2d8402813f4755398884a801fec59.tar.zst
cuberite-9c2a0bb7b9e2d8402813f4755398884a801fec59.zip
Diffstat (limited to '')
-rw-r--r--src/Entities/Player.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Entities/Player.h b/src/Entities/Player.h
index dab814692..b592913bd 100644
--- a/src/Entities/Player.h
+++ b/src/Entities/Player.h
@@ -499,6 +499,13 @@ public:
The blocks in range (a_BlockX - a_Range, a_BlockX + a_Range) are sent (NY-metric). */
void SendBlocksAround(int a_BlockX, int a_BlockY, int a_BlockZ, int a_Range = 1);
+ bool HasSkinPart(eSkinPart a_Part) const { return (m_SkinParts & a_Part) != 0; }
+ int GetSkinParts(void) const { return m_SkinParts; }
+ void SetSkinParts(int a_Parts);
+
+ eMainHand GetMainHand(void) const { return m_MainHand; }
+ void SetMainHand(eMainHand a_Hand);
+
// tolua_end
/** Calls the block placement hooks and places the blocks in the world.
@@ -682,6 +689,12 @@ protected:
AString m_CustomName;
+ /** Displayed skin part bit mask */
+ int m_SkinParts;
+
+ /** The main hand of the player */
+ eMainHand m_MainHand;
+
/** Sets the speed and sends it to the client, so that they are forced to move so. */
virtual void DoSetSpeed(double a_SpeedX, double a_SpeedY, double a_SpeedZ) override;