diff options
author | 9caihezi <9caihezi@gmail.com> | 2018-01-08 14:37:10 +0100 |
---|---|---|
committer | peterbell10 <peterbell10@live.co.uk> | 2018-01-08 14:37:10 +0100 |
commit | 4242431407459e91f725de9cb7fb1e2ffade216d (patch) | |
tree | 620e7f525183c768bee8014fae7e08ed61089b92 /src/Protocol/Protocol_1_9.h | |
parent | readme: Be explicit that Cuberite works with Java Edition Clients. (#4138) (diff) | |
download | cuberite-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.h | 4 |
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); |