Botcraft
1.21.5
Loading...
Searching...
No Matches
ClientboundUpdateAdvancementsPacket.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <map>
4
5
#include "
protocolCraft/BasePacket.hpp
"
6
#include "
protocolCraft/Types/Advancement.hpp
"
7
#include "
protocolCraft/Types/AdvancementProgress.hpp
"
8
#include "
protocolCraft/Types/Identifier.hpp
"
9
10
namespace
ProtocolCraft
11
{
12
class
ClientboundUpdateAdvancementsPacket
:
public
BasePacket
<ClientboundUpdateAdvancementsPacket>
13
{
14
public
:
15
static
constexpr
std::string_view
packet_name
=
"Update Advancements"
;
16
17
SERIALIZED_FIELD
(Reset,
bool
);
18
SERIALIZED_FIELD
(Added, std::map<Identifier, Advancement>);
19
SERIALIZED_FIELD
(Removed, std::vector<Identifier>);
20
SERIALIZED_FIELD
(Progress, std::map<Identifier, AdvancementProgress>);
21
#if PROTOCOL_VERSION > 769
/* > 1.21.4 */
22
SERIALIZED_FIELD
(ShowAdvancements,
bool
);
23
#endif
24
25
DECLARE_READ_WRITE_SERIALIZE
;
26
};
27
}
//ProtocolCraft
AdvancementProgress.hpp
Advancement.hpp
BasePacket.hpp
Identifier.hpp
ProtocolCraft::BasePacket
Definition
BasePacket.hpp:11
ProtocolCraft::ClientboundUpdateAdvancementsPacket
Definition
ClientboundUpdateAdvancementsPacket.hpp:13
ProtocolCraft::ClientboundUpdateAdvancementsPacket::SERIALIZED_FIELD
SERIALIZED_FIELD(Added, std::map< Identifier, Advancement >)
ProtocolCraft::ClientboundUpdateAdvancementsPacket::SERIALIZED_FIELD
SERIALIZED_FIELD(Progress, std::map< Identifier, AdvancementProgress >)
ProtocolCraft::ClientboundUpdateAdvancementsPacket::DECLARE_READ_WRITE_SERIALIZE
DECLARE_READ_WRITE_SERIALIZE
Definition
ClientboundUpdateAdvancementsPacket.hpp:25
ProtocolCraft::ClientboundUpdateAdvancementsPacket::SERIALIZED_FIELD
SERIALIZED_FIELD(Removed, std::vector< Identifier >)
ProtocolCraft::ClientboundUpdateAdvancementsPacket::SERIALIZED_FIELD
SERIALIZED_FIELD(Reset, bool)
ProtocolCraft::ClientboundUpdateAdvancementsPacket::SERIALIZED_FIELD
SERIALIZED_FIELD(ShowAdvancements, bool)
ProtocolCraft::ClientboundUpdateAdvancementsPacket::packet_name
static constexpr std::string_view packet_name
Definition
ClientboundUpdateAdvancementsPacket.hpp:15
ProtocolCraft
Definition
ItemUtilities.hpp:8
protocolCraft
include
protocolCraft
Packets
Game
Clientbound
ClientboundUpdateAdvancementsPacket.hpp
Generated by
1.9.8