Botcraft 1.21.4
Loading...
Searching...
No Matches
ClientboundProjectilePowerPacket.hpp
Go to the documentation of this file.
1#if PROTOCOL_VERSION > 765 /* > 1.20.4 */
2#pragma once
3
5
6namespace ProtocolCraft
7{
8 class ClientboundProjectilePowerPacket : public BaseMessage<ClientboundProjectilePowerPacket>
9 {
10 public:
11 static constexpr std::string_view packet_name = "Projectile Power";
12
14#if PROTOCOL_VERSION < 767 /* < 1.21 */
15 SERIALIZED_FIELD(XPower, double);
16 SERIALIZED_FIELD(YPower, double);
17 SERIALIZED_FIELD(ZPower, double);
18#else
19 SERIALIZED_FIELD(AccelerationPower, double);
20#endif
21
23 };
24} //ProtocolCraft
25#endif
#define SERIALIZED_FIELD(Name,...)