Botcraft 1.21.4
Loading...
Searching...
No Matches
ClientboundPlayerLookAtPacket.hpp
Go to the documentation of this file.
1#if PROTOCOL_VERSION > 351 /* > 1.12.2 */
2#pragma once
3
5
6namespace ProtocolCraft
7{
8 class ClientboundPlayerLookAtPacket : public BaseMessage<ClientboundPlayerLookAtPacket>
9 {
10 public:
11 static constexpr std::string_view packet_name = "Face Player";
12
13 DEFINE_CONDITION(HasEntity, GetAtEntity());
14
16 SERIALIZED_FIELD(X, double);
17 SERIALIZED_FIELD(Y, double);
18 SERIALIZED_FIELD(Z, double);
19 SERIALIZED_FIELD(AtEntity, bool);
22
24 };
25} //ProtocolCraft
26#endif
SERIALIZED_FIELD(Entity, Internal::Conditioned< VarInt, &THIS::HasEntity >)
SERIALIZED_FIELD(ToAnchor, Internal::Conditioned< VarInt, &THIS::HasEntity >)
DEFINE_CONDITION(HasEntity, GetAtEntity())
A type wrapper to conditionally serialize a type.
Definition Templates.hpp:83