Botcraft 1.21.4
Loading...
Searching...
No Matches
ClientboundCommandSuggestionsPacket.hpp
Go to the documentation of this file.
1#pragma once
2
4
5#if PROTOCOL_VERSION > 356 /* > 1.12.2 */
7#endif
8
9namespace ProtocolCraft
10{
11 class ClientboundCommandSuggestionsPacket : public BaseMessage<ClientboundCommandSuggestionsPacket>
12 {
13 public:
14 static constexpr std::string_view packet_name = "Command Suggestions";
15
16#if PROTOCOL_VERSION < 393 /* < 1.13 */
17 SERIALIZED_FIELD(Suggestions, std::vector<std::string>);
18#else
22 SERIALIZED_FIELD(Suggestions, std::map<std::string, std::optional<Chat>>);
23#endif
24
26 };
27} //ProtocolCraft
#define SERIALIZED_FIELD(Name,...)
SERIALIZED_FIELD(Suggestions, std::map< std::string, std::optional< Chat > >)