Botcraft
1.21.4
Loading...
Searching...
No Matches
ClientboundSetDisplayObjectivePacket.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "
protocolCraft/BaseMessage.hpp
"
4
5
namespace
ProtocolCraft
6
{
7
class
ClientboundSetDisplayObjectivePacket
:
public
BaseMessage
<ClientboundSetDisplayObjectivePacket>
8
{
9
public
:
10
static
constexpr
std::string_view
packet_name
=
"Set Display Objective"
;
11
12
#if PROTOCOL_VERSION < 764
/* < 1.20.2 */
13
SERIALIZED_FIELD
(
Slot
,
char
);
14
#else
15
SERIALIZED_FIELD
(
Slot
,
VarInt
);
16
#endif
17
SERIALIZED_FIELD
(ObjectiveName, std::string);
18
19
DECLARE_READ_WRITE_SERIALIZE
;
20
};
21
}
//ProtocolCraft
SERIALIZED_FIELD
#define SERIALIZED_FIELD(Name,...)
Definition
AutoSerializedMacros.hpp:77
BaseMessage.hpp
ProtocolCraft::BaseMessage
Definition
BaseMessage.hpp:11
ProtocolCraft::ClientboundSetDisplayObjectivePacket
Definition
ClientboundSetDisplayObjectivePacket.hpp:8
ProtocolCraft::ClientboundSetDisplayObjectivePacket::SERIALIZED_FIELD
SERIALIZED_FIELD(Slot, VarInt)
ProtocolCraft::ClientboundSetDisplayObjectivePacket::packet_name
static constexpr std::string_view packet_name
Definition
ClientboundSetDisplayObjectivePacket.hpp:10
ProtocolCraft::ClientboundSetDisplayObjectivePacket::DECLARE_READ_WRITE_SERIALIZE
DECLARE_READ_WRITE_SERIALIZE
Definition
ClientboundSetDisplayObjectivePacket.hpp:19
ProtocolCraft::ClientboundSetDisplayObjectivePacket::SERIALIZED_FIELD
SERIALIZED_FIELD(ObjectiveName, std::string)
ProtocolCraft::Slot
Definition
Slot.hpp:13
ProtocolCraft
Definition
ItemUtilities.hpp:8
ProtocolCraft::VarType
Definition
Templates.hpp:26
protocolCraft
include
protocolCraft
Messages
Play
Clientbound
ClientboundSetDisplayObjectivePacket.hpp
Generated by
1.9.8