Botcraft
1.21.5
Loading...
Searching...
No Matches
DataComponentTypeItemAttributeModifiers.hpp
Go to the documentation of this file.
1
#if PROTOCOL_VERSION > 765
/* > 1.20.4 */
2
#pragma once
3
#include "
protocolCraft/Types/Components/DataComponentType.hpp
"
4
#include "
protocolCraft/Types/Components/Subtypes/ItemAttributeModifiersEntry.hpp
"
5
6
#include <vector>
7
8
namespace
ProtocolCraft
9
{
10
namespace
Components
11
{
12
class
DataComponentTypeItemAttributeModifiers
:
public
DataComponentType
13
{
14
SERIALIZED_FIELD
(Modifiers, std::vector<ItemAttributeModifiersEntry>);
15
#if PROTOCOL_VERSION < 770
/* < 1.21.5 */
16
SERIALIZED_FIELD
(ShowInTooltip,
bool
);
17
#endif
18
19
DECLARE_READ_WRITE_SERIALIZE
;
20
};
21
}
22
}
23
#endif
SERIALIZED_FIELD
#define SERIALIZED_FIELD(Name,...)
Definition
AutoSerializedMacros.hpp:77
DataComponentType.hpp
ItemAttributeModifiersEntry.hpp
ProtocolCraft::Components::DataComponentTypeItemAttributeModifiers
Definition
DataComponentTypeItemAttributeModifiers.hpp:13
ProtocolCraft::Components::DataComponentTypeItemAttributeModifiers::DECLARE_READ_WRITE_SERIALIZE
DECLARE_READ_WRITE_SERIALIZE
Definition
DataComponentTypeItemAttributeModifiers.hpp:19
ProtocolCraft::Components::DataComponentTypeItemAttributeModifiers::SERIALIZED_FIELD
SERIALIZED_FIELD(Modifiers, std::vector< ItemAttributeModifiersEntry >)
ProtocolCraft::Components::DataComponentType
Definition
DataComponentType.hpp:10
ProtocolCraft
Definition
ItemUtilities.hpp:8
protocolCraft
include
protocolCraft
Types
Components
DataComponentTypeItemAttributeModifiers.hpp
Generated by
1.9.8