Botcraft 1.21.4
Loading...
Searching...
No Matches
ClientboundChatPacket.hpp
Go to the documentation of this file.
1#if PROTOCOL_VERSION < 759 /* < 1.19 */
2#pragma once
3
6
7namespace ProtocolCraft
8{
9 class ClientboundChatPacket : public BaseMessage<ClientboundChatPacket>
10 {
11 public:
12 static constexpr std::string_view packet_name = "Chat";
13
14 SERIALIZED_FIELD(Message, Chat);
15 SERIALIZED_FIELD(Type, char);
16#if PROTOCOL_VERSION > 717 /* > 1.15.2 */
17 SERIALIZED_FIELD(Sender, UUID);
18#endif
19
21 };
22} //ProtocolCraft
23#endif
#define DECLARE_READ_WRITE_SERIALIZE
Define auto serializable utilities and declare ReadImpl, WriteImpl and SerializeImpl virtual function...
#define SERIALIZED_FIELD(Name,...)