Botcraft
26.2
Loading...
Searching...
No Matches
ServerboundCustomClickActionPacket.hpp
Go to the documentation of this file.
1
#if PROTOCOL_VERSION > 770
/* > 1.21.5 */
2
#pragma once
3
4
#include "
protocolCraft/BasePacket.hpp
"
5
6
#include "
protocolCraft/Types/Identifier.hpp
"
7
#include "
protocolCraft/Types/NBT/NBT.hpp
"
8
9
#include <optional>
10
11
namespace
ProtocolCraft
12
{
13
class
ServerboundCustomClickActionPacket
:
public
BasePacket
<ServerboundCustomClickActionPacket>
14
{
15
public
:
16
static
constexpr
std::string_view
packet_name
=
"Custom Click Action"
;
17
18
SERIALIZED_FIELD
(Id_,
Identifier
);
19
SERIALIZED_FIELD
(Payload,
Internal::DiffType<NBT::Value, NBT::UntrustedValue>
);
20
21
DECLARE_READ_WRITE_SERIALIZE
;
22
};
23
}
//ProtocolCraft
24
#endif
BasePacket.hpp
Identifier.hpp
NBT.hpp
ProtocolCraft::BasePacket
Definition
BasePacket.hpp:11
ProtocolCraft::Identifier
Definition
Identifier.hpp:8
ProtocolCraft::ServerboundCustomClickActionPacket
Definition
ServerboundCustomClickActionPacket.hpp:14
ProtocolCraft::ServerboundCustomClickActionPacket::packet_name
static constexpr std::string_view packet_name
Definition
ServerboundCustomClickActionPacket.hpp:16
ProtocolCraft::ServerboundCustomClickActionPacket::SERIALIZED_FIELD
SERIALIZED_FIELD(Id_, Identifier)
ProtocolCraft::ServerboundCustomClickActionPacket::SERIALIZED_FIELD
SERIALIZED_FIELD(Payload, Internal::DiffType< NBT::Value, NBT::UntrustedValue >)
ProtocolCraft::ServerboundCustomClickActionPacket::DECLARE_READ_WRITE_SERIALIZE
DECLARE_READ_WRITE_SERIALIZE
Definition
ServerboundCustomClickActionPacket.hpp:21
ProtocolCraft
Definition
ItemUtilities.hpp:8
ProtocolCraft::Internal::DiffType
Just a simple type wrapper that will store with T1 and serialize as T2 (can be used for Enum/VarInt f...
Definition
Templates.hpp:72
protocolCraft
include
protocolCraft
Packets
Game
Serverbound
ServerboundCustomClickActionPacket.hpp
Generated by
1.9.8