Botcraft 1.21.4
Loading...
Searching...
No Matches
ClientboundDamageEventPacket.hpp
Go to the documentation of this file.
1#if PROTOCOL_VERSION > 761 /* > 1.19.3 */
2#pragma once
3
5
6namespace ProtocolCraft
7{
8 class ClientboundDamageEventPacket : public BaseMessage<ClientboundDamageEventPacket>
9 {
10 public:
11 static constexpr std::string_view packet_name = "Damage Event";
12
14 SERIALIZED_FIELD(SourceTypeId, VarInt);
15 SERIALIZED_FIELD(SourceCauseId, VarInt);
16 SERIALIZED_FIELD(SourceDirectId, VarInt);
17 SERIALIZED_FIELD(SourcePosition, std::optional<std::array<double, 3>>);
18
20 };
21} //ProtocolCraft
22#endif
SERIALIZED_FIELD(SourcePosition, std::optional< std::array< double, 3 > >)