Botcraft 1.21.4
Loading...
Searching...
No Matches
ServerboundPlayerAbilitiesPacket.hpp
Go to the documentation of this file.
1#pragma once
2
4
5namespace ProtocolCraft
6{
7 class ServerboundPlayerAbilitiesPacket : public BaseMessage<ServerboundPlayerAbilitiesPacket>
8 {
9 public:
10 static constexpr std::string_view packet_name = "Player Abilities";
11
12 SERIALIZED_FIELD(Flags, char);
13#if PROTOCOL_VERSION < 735 /* < 1.16 */
14 SERIALIZED_FIELD(FlyingSpeed, float);
15 SERIALIZED_FIELD(WalkingSpeed, float);
16#endif
17
19 };
20} //ProtocolCraft
#define SERIALIZED_FIELD(Name,...)