Botcraft 1.21.4
Loading...
Searching...
No Matches
ServerboundClientInformationPacket.hpp
Go to the documentation of this file.
1#pragma once
2
4
5#if PROTOCOL_VERSION > 763 /* > 1.20.1 */
7#endif
8
9
10namespace ProtocolCraft
11{
12 class ServerboundClientInformationPacket : public BaseMessage<ServerboundClientInformationPacket>
13 {
14 public:
15 static constexpr std::string_view packet_name = "Client Information";
16
17
18#if PROTOCOL_VERSION < 764 /* < 1.20.2 */
19 SERIALIZED_FIELD(Language, std::string);
20 SERIALIZED_FIELD(ViewDistance, char);
21 SERIALIZED_FIELD(ChatVisibility, VarInt);
22 SERIALIZED_FIELD(ChatColors, bool);
23 SERIALIZED_FIELD(ModelCustomisation, unsigned char);
24 SERIALIZED_FIELD(MainHand, VarInt);
25#endif
26#if PROTOCOL_VERSION > 754 /* > 1.16.5 */ && PROTOCOL_VERSION < 764 /* < 1.20.2 */
27 SERIALIZED_FIELD(TextFilteringEnabled, bool);
28#endif
29#if PROTOCOL_VERSION > 756 /* > 1.17.1 */ && PROTOCOL_VERSION < 764 /* < 1.20.2 */
30 SERIALIZED_FIELD(AllowListing, bool);
31#endif
32#if PROTOCOL_VERSION > 763 /* > 1.20.1 */
34#endif
35
37 };
38} //ProtocolCraft
#define SERIALIZED_FIELD(Name,...)
SERIALIZED_FIELD(ClientInformation, ProtocolCraft::ClientInformation)