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
4
5#include <map>
6
7namespace ProtocolCraft
8{
9 namespace Components
10 {
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
19 };
20 }
21}
22#endif
#define SERIALIZED_FIELD(Name,...)
SERIALIZED_FIELD(Enchantments, std::map< VarInt, VarInt >)