Botcraft 26.3
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 BasePacket<ClientboundTeleportEntityPacket>
11 {
12 public:
13 static constexpr std::string_view packet_name = "Teleport Entity";
14
16#if PROTOCOL_VERSION < 107 /* < 1.9 */
17 SERIALIZED_FIELD(X, int);
18 SERIALIZED_FIELD(Y, int);
19 SERIALIZED_FIELD(Z, int);
20 SERIALIZED_FIELD(YRot, unsigned char);
21 SERIALIZED_FIELD(XRot, unsigned char);
22#elif PROTOCOL_VERSION < 768 /* < 1.21.2 */
23 SERIALIZED_FIELD(X, double);
24 SERIALIZED_FIELD(Y, double);
25 SERIALIZED_FIELD(Z, double);
26 SERIALIZED_FIELD(YRot, unsigned char);
27 SERIALIZED_FIELD(XRot, unsigned char);
28#else
30 SERIALIZED_FIELD(Relatives, int);
31#endif
32 SERIALIZED_FIELD(OnGround, bool);
33
35 };
36} //ProtocolCraft
#define SERIALIZED_FIELD(Name,...)
SERIALIZED_FIELD(Change, PositionMoveRotation)