Botcraft 1.21.4
Loading...
Searching...
No Matches
ClientboundAddPlayerPacket.hpp
Go to the documentation of this file.
1#if PROTOCOL_VERSION < 764 /* < 1.20.2 */
2#pragma once
3
5
6namespace ProtocolCraft
7{
8 class ClientboundAddPlayerPacket : public BaseMessage<ClientboundAddPlayerPacket>
9 {
10 public:
11 static constexpr std::string_view packet_name = "Add Player";
12
13 SERIALIZED_FIELD(EntityId, VarInt);
14 SERIALIZED_FIELD(PlayerId, UUID);
15 SERIALIZED_FIELD(X, double);
16 SERIALIZED_FIELD(Y, double);
17 SERIALIZED_FIELD(Z, double);
18 SERIALIZED_FIELD(YRot, unsigned char);
19 SERIALIZED_FIELD(XRot, unsigned char);
20#if PROTOCOL_VERSION < 573 /* < 1.15 */
21 SERIALIZED_FIELD(RawMetadata, Internal::Vector<unsigned char, void, 0>);
22#endif
23
25 };
26} //ProtocolCraft
27#endif
#define DECLARE_READ_WRITE_SERIALIZE
Define auto serializable utilities and declare ReadImpl, WriteImpl and SerializeImpl virtual function...
#define SERIALIZED_FIELD(Name,...)