Botcraft
1.21.4
Loading...
Searching...
No Matches
ServerboundPlayerAbilitiesPacket.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "
protocolCraft/BaseMessage.hpp
"
4
5
namespace
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
18
DECLARE_READ_WRITE_SERIALIZE
;
19
};
20
}
//ProtocolCraft
SERIALIZED_FIELD
#define SERIALIZED_FIELD(Name,...)
Definition
AutoSerializedMacros.hpp:77
BaseMessage.hpp
ProtocolCraft::BaseMessage
Definition
BaseMessage.hpp:11
ProtocolCraft::ServerboundPlayerAbilitiesPacket
Definition
ServerboundPlayerAbilitiesPacket.hpp:8
ProtocolCraft::ServerboundPlayerAbilitiesPacket::DECLARE_READ_WRITE_SERIALIZE
DECLARE_READ_WRITE_SERIALIZE
Definition
ServerboundPlayerAbilitiesPacket.hpp:18
ProtocolCraft::ServerboundPlayerAbilitiesPacket::packet_name
static constexpr std::string_view packet_name
Definition
ServerboundPlayerAbilitiesPacket.hpp:10
ProtocolCraft::ServerboundPlayerAbilitiesPacket::SERIALIZED_FIELD
SERIALIZED_FIELD(Flags, char)
ProtocolCraft
Definition
ItemUtilities.hpp:8
protocolCraft
include
protocolCraft
Messages
Play
Serverbound
ServerboundPlayerAbilitiesPacket.hpp
Generated by
1.9.8