Botcraft
1.21.4
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
SERIALIZED_FIELD
(ShowInTooltip,
bool
);
15
16
DECLARE_READ_WRITE_SERIALIZE
;
17
};
18
}
19
}
20
#endif
DataComponentType.hpp
ProtocolCraft::Components::DataComponentTypeItemEnchantments
Definition
DataComponentTypeItemEnchantments.hpp:12
ProtocolCraft::Components::DataComponentTypeItemEnchantments::DECLARE_READ_WRITE_SERIALIZE
DECLARE_READ_WRITE_SERIALIZE
Definition
DataComponentTypeItemEnchantments.hpp:16
ProtocolCraft::Components::DataComponentTypeItemEnchantments::SERIALIZED_FIELD
SERIALIZED_FIELD(Enchantments, std::map< VarInt, VarInt >)
ProtocolCraft::Components::DataComponentTypeItemEnchantments::SERIALIZED_FIELD
SERIALIZED_FIELD(ShowInTooltip, bool)
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