Botcraft
1.21.5
Loading...
Searching...
No Matches
DataComponentTypeItemEnchantments.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
5
#include <map>
6
7
namespace
ProtocolCraft
8
{
9
namespace
Components
10
{
11
class
DataComponentTypeItemEnchantments
:
public
DataComponentType
12
{
13
SERIALIZED_FIELD
(
Enchantments
, std::map<VarInt, VarInt>);
14
#if PROTOCOL_VERSION < 770
/* < 1.21.5 */
15
SERIALIZED_FIELD
(ShowInTooltip,
bool
);
16
#endif
17
18
DECLARE_READ_WRITE_SERIALIZE
;
19
};
20
}
21
}
22
#endif
SERIALIZED_FIELD
#define SERIALIZED_FIELD(Name,...)
Definition
AutoSerializedMacros.hpp:77
DataComponentType.hpp
ProtocolCraft::Components::DataComponentTypeItemEnchantments
Definition
DataComponentTypeItemEnchantments.hpp:12
ProtocolCraft::Components::DataComponentTypeItemEnchantments::DECLARE_READ_WRITE_SERIALIZE
DECLARE_READ_WRITE_SERIALIZE
Definition
DataComponentTypeItemEnchantments.hpp:18
ProtocolCraft::Components::DataComponentTypeItemEnchantments::SERIALIZED_FIELD
SERIALIZED_FIELD(Enchantments, std::map< VarInt, VarInt >)
ProtocolCraft::Components::DataComponentType
Definition
DataComponentType.hpp:10
ProtocolCraft::Components::DataComponentTypes::Enchantments
@ Enchantments
ProtocolCraft
Definition
ItemUtilities.hpp:8
protocolCraft
include
protocolCraft
Types
Components
DataComponentTypeItemEnchantments.hpp
Generated by
1.9.8