Botcraft
1.21.4
Loading...
Searching...
No Matches
ServerboundCookieResponsePacket.hpp
Go to the documentation of this file.
1
#if PROTOCOL_VERSION > 765
/* > 1.20.4 */
2
#pragma once
3
4
#include "
protocolCraft/BaseMessage.hpp
"
5
#include "
protocolCraft/Types/Identifier.hpp
"
6
7
#include <optional>
8
#include <vector>
9
10
namespace
ProtocolCraft
11
{
12
class
ServerboundCookieResponsePacket
:
public
BaseMessage
<ServerboundCookieResponsePacket>
13
{
14
public
:
15
static
constexpr
std::string_view
packet_name
=
"Cookie Response"
;
16
17
SERIALIZED_FIELD
(Key,
Identifier
);
18
SERIALIZED_FIELD
(Payload, std::optional<
Internal::Vector<unsigned char, void, 0>
>);
19
20
DECLARE_READ_WRITE_SERIALIZE
;
21
};
22
}
// ProtocolCraft
23
#endif
BaseMessage.hpp
Identifier.hpp
ProtocolCraft::BaseMessage
Definition
BaseMessage.hpp:11
ProtocolCraft::Identifier
Definition
Identifier.hpp:8
ProtocolCraft::ServerboundCookieResponsePacket
Definition
ServerboundCookieResponsePacket.hpp:13
ProtocolCraft::ServerboundCookieResponsePacket::SERIALIZED_FIELD
SERIALIZED_FIELD(Payload, std::optional< Internal::Vector< unsigned char, void, 0 > >)
ProtocolCraft::ServerboundCookieResponsePacket::packet_name
static constexpr std::string_view packet_name
Definition
ServerboundCookieResponsePacket.hpp:15
ProtocolCraft::ServerboundCookieResponsePacket::DECLARE_READ_WRITE_SERIALIZE
DECLARE_READ_WRITE_SERIALIZE
Definition
ServerboundCookieResponsePacket.hpp:20
ProtocolCraft::ServerboundCookieResponsePacket::SERIALIZED_FIELD
SERIALIZED_FIELD(Key, Identifier)
ProtocolCraft
Definition
ItemUtilities.hpp:8
ProtocolCraft::Internal::Vector
Definition
Templates.hpp:96
protocolCraft
include
protocolCraft
Messages
Play
Serverbound
ServerboundCookieResponsePacket.hpp
Generated by
1.9.8