5#if PROTOCOL_VERSION < 765
13#if PROTOCOL_VERSION < 765
14 class Chat :
public NetworkType
25#if PROTOCOL_VERSION < 765
26 auto& SetRawText(
const std::string& s)
38#if PROTOCOL_VERSION < 765
39 const std::string& GetRawText()
const
48#if PROTOCOL_VERSION < 765
49 raw_text = ReadData<std::string>(iter, length);
53 if (is<NBT::TagCompound>())
57 else if (is<NBT::TagString>())
59 text = get<NBT::TagString>();
67#if PROTOCOL_VERSION < 765
68 WriteData<std::string>(raw_text, container);
74#if PROTOCOL_VERSION < 765
79 output[
"raw_text"] = raw_text;
86#if PROTOCOL_VERSION < 765
87 std::string
ParseChat(
const Json::Value& raw_json);
89 std::string
ParseChat(
const NBT::TagCompound& raw);
95#if PROTOCOL_VERSION < 765
const std::string & GetText() const
virtual void ReadImpl(ReadIterator &iter, size_t &length) override
std::string ParseChat(const NBT::TagCompound &raw)
virtual void WriteImpl(WriteContainer &container) const override
Main class, basically a JsonVariant with extra utility functions it doesn't inherit JsonVariant direc...
void WriteUnnamedImpl(WriteContainer &container) const
virtual Json::Value SerializeImpl() const override
void ReadUnnamedImpl(ReadIterator &iter, size_t &length)
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