5#if PROTOCOL_VERSION < 765
15#if PROTOCOL_VERSION < 765
16 class Chat :
public NetworkType
27#if PROTOCOL_VERSION < 765
28 auto& SetRawText(
const std::string& s)
40#if PROTOCOL_VERSION < 765
41 const std::string& GetRawText()
const
50#if PROTOCOL_VERSION < 765
51 raw_text = ReadData<std::string>(iter, length);
59#if PROTOCOL_VERSION < 765
62 WriteData<std::string>(raw_text, container);
66#if PROTOCOL_VERSION < 765
71 output[
"raw_text"] = raw_text;
78#if PROTOCOL_VERSION < 765
79 static std::string
ParseChat(
const Json::Value& raw_json);
82 static std::vector<std::string>
ParseChatParts(
const NBT::Tag& tag);
83 static std::string
ParseChat(
const NBT::Tag& tag);
89#if PROTOCOL_VERSION < 765
const std::string & GetText() const
virtual void ReadImpl(ReadIterator &iter, size_t &length) override
static std::vector< std::string > ParseChatParts(const NBT::Tag &tag)
static std::string ParseChat(const NBT::Tag &tag)
static std::string ParseChatCompound(const NBT::TagCompound &raw)
virtual void WriteImpl(WriteContainer &container) const override
virtual void ReadImpl(ReadIterator &iter, size_t &length) override
virtual Json::Value SerializeImpl() const override
Value Parse(std::string_view::const_iterator iter, size_t length, bool no_except=false)
Parse a string_view from iter for at most length characters.
std::vector< unsigned char > WriteContainer
std::vector< unsigned char >::const_iterator ReadIterator