Botcraft 26.3
Loading...
Searching...
No Matches
ServerboundSwingPacket.hpp
Go to the documentation of this file.
1#if PROTOCOL_VERSION < 777 /* < 26.3 */
2#pragma once
3
5
6namespace ProtocolCraft
7{
8 class ServerboundSwingPacket : public BasePacket<ServerboundSwingPacket>
9 {
10 public:
11 static constexpr std::string_view packet_name = "Swing";
12
13#if PROTOCOL_VERSION > 47 /* > 1.8.9 */
14 SERIALIZED_FIELD(Hand, VarInt);
15#endif
16
18 };
19} //ProtocolCraft
20#endif
#define DECLARE_READ_WRITE_SERIALIZE
Define auto serializable utilities and declare ReadImpl, WriteImpl and SerializeImpl virtual function...
#define SERIALIZED_FIELD(Name,...)