Botcraft 1.21.4
Loading...
Searching...
No Matches
ClientboundTeleportEntityPacket.hpp
Go to the documentation of this file.
1#pragma once
2
4#if PROTOCOL_VERSION > 767 /* > 1.21.1 */
6#endif
7
8namespace ProtocolCraft
9{
10 class ClientboundTeleportEntityPacket : public BaseMessage<ClientboundTeleportEntityPacket>
11 {
12 public:
13 static constexpr std::string_view packet_name = "Teleport Entity";
14
16#if PROTOCOL_VERSION < 768 /* < 1.21.2 */
17 SERIALIZED_FIELD(X, double);
18 SERIALIZED_FIELD(Y, double);
19 SERIALIZED_FIELD(Z, double);
20 SERIALIZED_FIELD(YRot, unsigned char);
21 SERIALIZED_FIELD(XRot, unsigned char);
22#else
24 SERIALIZED_FIELD(Relatives, int);
25#endif
26 SERIALIZED_FIELD(OnGround, bool);
27
29 };
30} //ProtocolCraft
#define SERIALIZED_FIELD(Name,...)
SERIALIZED_FIELD(Change, PositionMoveRotation)