Botcraft 26.3
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 BasePacket<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#if PROTOCOL_VERSION < 107 /* < 1.9 */
22 SERIALIZED_FIELD(ChatVisibility, unsigned char);
23#else
24 SERIALIZED_FIELD(ChatVisibility, VarInt);
25#endif
26 SERIALIZED_FIELD(ChatColors, bool);
27 SERIALIZED_FIELD(ModelCustomisation, unsigned char);
28#endif
29#if PROTOCOL_VERSION > 47 /* > 1.8.9 */ && PROTOCOL_VERSION < 764 /* < 1.20.2 */
30 SERIALIZED_FIELD(MainHand, VarInt);
31#endif
32#if PROTOCOL_VERSION > 754 /* > 1.16.5 */ && PROTOCOL_VERSION < 764 /* < 1.20.2 */
33 SERIALIZED_FIELD(TextFilteringEnabled, bool);
34#endif
35#if PROTOCOL_VERSION > 756 /* > 1.17.1 */ && PROTOCOL_VERSION < 764 /* < 1.20.2 */
36 SERIALIZED_FIELD(AllowListing, bool);
37#endif
38#if PROTOCOL_VERSION > 763 /* > 1.20.1 */
40#endif
41
43 };
44} //ProtocolCraft
#define SERIALIZED_FIELD(Name,...)
SERIALIZED_FIELD(ClientInformation, ProtocolCraft::ClientInformation)