From a06b72c18dde43d8b242ed02261daa7c19c8b910 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Fri, 15 Jun 2012 20:58:52 +0000 Subject: Anvil: added support for signs (why was it still missing??) git-svn-id: http://mc-server.googlecode.com/svn/trunk@616 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/FastNBT.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source/FastNBT.h') diff --git a/source/FastNBT.h b/source/FastNBT.h index ca801b36f..88d79f4c1 100644 --- a/source/FastNBT.h +++ b/source/FastNBT.h @@ -182,6 +182,14 @@ public: return NetworkToHostDouble8(m_Data + m_Tags[a_Tag].m_DataStart); } + inline AString GetString(int a_Tag) const + { + ASSERT(m_Tags[a_Tag].m_Type == TAG_String); + AString res; + res.assign(m_Data + m_Tags[a_Tag].m_DataStart, m_Tags[a_Tag].m_DataLength); + return res; + } + protected: const char * m_Data; int m_Length; -- cgit v1.2.3