summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol_1_9.h
diff options
context:
space:
mode:
author9caihezi <9caihezi@gmail.com>2018-01-08 14:37:10 +0100
committerpeterbell10 <peterbell10@live.co.uk>2018-01-08 14:37:10 +0100
commit4242431407459e91f725de9cb7fb1e2ffade216d (patch)
tree620e7f525183c768bee8014fae7e08ed61089b92 /src/Protocol/Protocol_1_9.h
parentreadme: Be explicit that Cuberite works with Java Edition Clients. (#4138) (diff)
downloadcuberite-4242431407459e91f725de9cb7fb1e2ffade216d.tar
cuberite-4242431407459e91f725de9cb7fb1e2ffade216d.tar.gz
cuberite-4242431407459e91f725de9cb7fb1e2ffade216d.tar.bz2
cuberite-4242431407459e91f725de9cb7fb1e2ffade216d.tar.lz
cuberite-4242431407459e91f725de9cb7fb1e2ffade216d.tar.xz
cuberite-4242431407459e91f725de9cb7fb1e2ffade216d.tar.zst
cuberite-4242431407459e91f725de9cb7fb1e2ffade216d.zip
Diffstat (limited to 'src/Protocol/Protocol_1_9.h')
-rw-r--r--src/Protocol/Protocol_1_9.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Protocol/Protocol_1_9.h b/src/Protocol/Protocol_1_9.h
index d08b76755..a7fd137a9 100644
--- a/src/Protocol/Protocol_1_9.h
+++ b/src/Protocol/Protocol_1_9.h
@@ -255,6 +255,10 @@ protected:
If the received value doesn't match any of our eBlockFace constants, BLOCK_FACE_NONE is returned. */
eBlockFace FaceIntToBlockFace(Int32 a_FaceInt);
+ /** Converts the hand parameter received by the protocol into eHand constants.
+ If the received value doesn't match any of the know value, raise an assertion fail or return hMain. */
+ eHand HandIntToEnum(Int32 a_Hand);
+
/** Writes the item data into a packet. */
void WriteItem(cPacketizer & a_Pkt, const cItem & a_Item);