Botcraft
1.21.4
Loading...
Searching...
No Matches
ServerboundSignUpdatePacket.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "
protocolCraft/BaseMessage.hpp
"
4
#include "
protocolCraft/Types/NetworkPosition.hpp
"
5
6
#include <array>
7
8
namespace
ProtocolCraft
9
{
10
class
ServerboundSignUpdatePacket
:
public
BaseMessage
<ServerboundSignUpdatePacket>
11
{
12
public
:
13
static
constexpr
std::string_view
packet_name
=
"Sign Update"
;
14
15
SERIALIZED_FIELD
(Pos,
NetworkPosition
);
16
#if PROTOCOL_VERSION > 762
/* > 1.19.4 */
17
SERIALIZED_FIELD
(IsFrontText,
bool
);
18
#endif
19
SERIALIZED_FIELD
(Lines, std::array<std::string, 4>);
20
21
DECLARE_READ_WRITE_SERIALIZE
;
22
};
23
}
//ProtocolCraft
BaseMessage.hpp
NetworkPosition.hpp
ProtocolCraft::BaseMessage
Definition
BaseMessage.hpp:11
ProtocolCraft::NetworkPosition
Definition
NetworkPosition.hpp:8
ProtocolCraft::ServerboundSignUpdatePacket
Definition
ServerboundSignUpdatePacket.hpp:11
ProtocolCraft::ServerboundSignUpdatePacket::DECLARE_READ_WRITE_SERIALIZE
DECLARE_READ_WRITE_SERIALIZE
Definition
ServerboundSignUpdatePacket.hpp:21
ProtocolCraft::ServerboundSignUpdatePacket::SERIALIZED_FIELD
SERIALIZED_FIELD(Lines, std::array< std::string, 4 >)
ProtocolCraft::ServerboundSignUpdatePacket::SERIALIZED_FIELD
SERIALIZED_FIELD(Pos, NetworkPosition)
ProtocolCraft::ServerboundSignUpdatePacket::SERIALIZED_FIELD
SERIALIZED_FIELD(IsFrontText, bool)
ProtocolCraft::ServerboundSignUpdatePacket::packet_name
static constexpr std::string_view packet_name
Definition
ServerboundSignUpdatePacket.hpp:13
ProtocolCraft
Definition
ItemUtilities.hpp:8
protocolCraft
include
protocolCraft
Messages
Play
Serverbound
ServerboundSignUpdatePacket.hpp
Generated by
1.9.8