summaryrefslogtreecommitdiffstats
path: root/source/Protocol/Protocol17x.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-11-06 20:48:35 +0100
committermadmaxoft <github@xoft.cz>2013-11-06 20:48:56 +0100
commitedc848439a4e481067d986b8d8d3ef3e256a8810 (patch)
tree3f1b788cf300d0dcae7ec000ebc110384f8dc94b /source/Protocol/Protocol17x.h
parentProtocol 1.7: Finished the client-bound packets. (diff)
downloadcuberite-edc848439a4e481067d986b8d8d3ef3e256a8810.tar
cuberite-edc848439a4e481067d986b8d8d3ef3e256a8810.tar.gz
cuberite-edc848439a4e481067d986b8d8d3ef3e256a8810.tar.bz2
cuberite-edc848439a4e481067d986b8d8d3ef3e256a8810.tar.lz
cuberite-edc848439a4e481067d986b8d8d3ef3e256a8810.tar.xz
cuberite-edc848439a4e481067d986b8d8d3ef3e256a8810.tar.zst
cuberite-edc848439a4e481067d986b8d8d3ef3e256a8810.zip
Diffstat (limited to '')
-rw-r--r--source/Protocol/Protocol17x.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/Protocol/Protocol17x.h b/source/Protocol/Protocol17x.h
index f63cd8187..8cfb74004 100644
--- a/source/Protocol/Protocol17x.h
+++ b/source/Protocol/Protocol17x.h
@@ -244,6 +244,12 @@ protected:
virtual void SendData(const char * a_Data, int a_Size) override;
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
+ bool ReadItem(cItem & a_Item);
+
+ /// Parses item metadata as read by ReadItem(), into the item enchantments.
+ void ParseItemMetadata(cItem & a_Item, const AString & a_Metadata);
} ;