Botcraft
26.3
Loading...
Searching...
No Matches
DataComponentTypeSignText.hpp
Go to the documentation of this file.
1
#if PROTOCOL_VERSION > 776
/* > 26.2 */
2
#pragma once
3
#include "
protocolCraft/Types/Components/DataComponentType.hpp
"
4
#include "
protocolCraft/Types/Components/DataComponentTypeDyeColor.hpp
"
5
6
#include "
protocolCraft/Types/Chat/Chat.hpp
"
7
8
#include <array>
9
#include <optional>
10
11
namespace
ProtocolCraft
12
{
13
namespace
Components
14
{
15
class
DataComponentTypeSignText
:
public
DataComponentType
16
{
17
SERIALIZED_FIELD
(Messages, std::array<Chat, 4>);
18
SERIALIZED_FIELD
(FilteredMessagesForSerialization, std::optional<std::array<Chat, 4>>);
19
SERIALIZED_FIELD
(Color,
DataComponentTypeDyeColor
);
20
SERIALIZED_FIELD
(HasGlowingText,
bool
);
21
22
DECLARE_READ_WRITE_SERIALIZE
;
23
};
24
}
25
}
26
#endif
Chat.hpp
DataComponentTypeDyeColor.hpp
DataComponentType.hpp
ProtocolCraft::Components::DataComponentTypeDyeColor
Definition
DataComponentTypeDyeColor.hpp:10
ProtocolCraft::Components::DataComponentTypeSignText
Definition
DataComponentTypeSignText.hpp:16
ProtocolCraft::Components::DataComponentTypeSignText::SERIALIZED_FIELD
SERIALIZED_FIELD(FilteredMessagesForSerialization, std::optional< std::array< Chat, 4 > >)
ProtocolCraft::Components::DataComponentTypeSignText::SERIALIZED_FIELD
SERIALIZED_FIELD(Messages, std::array< Chat, 4 >)
ProtocolCraft::Components::DataComponentTypeSignText::SERIALIZED_FIELD
SERIALIZED_FIELD(Color, DataComponentTypeDyeColor)
ProtocolCraft::Components::DataComponentTypeSignText::DECLARE_READ_WRITE_SERIALIZE
DECLARE_READ_WRITE_SERIALIZE
Definition
DataComponentTypeSignText.hpp:22
ProtocolCraft::Components::DataComponentTypeSignText::SERIALIZED_FIELD
SERIALIZED_FIELD(HasGlowingText, bool)
ProtocolCraft::Components::DataComponentType
Definition
DataComponentType.hpp:10
ProtocolCraft
Definition
ItemUtilities.hpp:8
protocolCraft
include
protocolCraft
Types
Components
DataComponentTypeSignText.hpp
Generated by
1.9.8