From edc848439a4e481067d986b8d8d3ef3e256a8810 Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Wed, 6 Nov 2013 20:48:35 +0100 Subject: Protocol 1.7: Added more server-bound packets. --- source/Protocol/Protocol17x.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source/Protocol/Protocol17x.h') 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); } ; -- cgit v1.2.3