summaryrefslogtreecommitdiffstats
path: root/source/Protocol/Protocol17x.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/Protocol/Protocol17x.h')
-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);
} ;