summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol18x.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-09-25 20:34:49 +0200
committermadmaxoft <github@xoft.cz>2014-09-25 20:34:49 +0200
commit27187371ebe3988f92a03d5ed822aba5f3d97d79 (patch)
tree7225dfd4752587022775300e49d823cd05eb18f5 /src/Protocol/Protocol18x.h
parentProtocol 1.8: Added checks for values presence. (diff)
downloadcuberite-27187371ebe3988f92a03d5ed822aba5f3d97d79.tar
cuberite-27187371ebe3988f92a03d5ed822aba5f3d97d79.tar.gz
cuberite-27187371ebe3988f92a03d5ed822aba5f3d97d79.tar.bz2
cuberite-27187371ebe3988f92a03d5ed822aba5f3d97d79.tar.lz
cuberite-27187371ebe3988f92a03d5ed822aba5f3d97d79.tar.xz
cuberite-27187371ebe3988f92a03d5ed822aba5f3d97d79.tar.zst
cuberite-27187371ebe3988f92a03d5ed822aba5f3d97d79.zip
Diffstat (limited to 'src/Protocol/Protocol18x.h')
-rw-r--r--src/Protocol/Protocol18x.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Protocol/Protocol18x.h b/src/Protocol/Protocol18x.h
index eb0253663..df188b70f 100644
--- a/src/Protocol/Protocol18x.h
+++ b/src/Protocol/Protocol18x.h
@@ -321,8 +321,10 @@ protected:
void SendCompass(const cWorld & a_World);
- /** Reads an item out of the received data, sets a_Item to the values read. Returns false if not enough received data */
- virtual bool ReadItem(cByteBuffer & a_ByteBuffer, cItem & a_Item, size_t a_RemainingBytes = 0);
+ /** Reads an item out of the received data, sets a_Item to the values read.
+ Returns false if not enough received data.
+ a_KeepRemainingBytes tells the function to keep that many bytes at the end of the buffer. */
+ virtual bool ReadItem(cByteBuffer & a_ByteBuffer, cItem & a_Item, size_t a_KeepRemainingBytes = 0);
/** Parses item metadata as read by ReadItem(), into the item enchantments. */
void ParseItemMetadata(cItem & a_Item, const AString & a_Metadata);