Botcraft 1.21.5
Loading...
Searching...
No Matches
DataComponentTypeEquippable.hpp
Go to the documentation of this file.
1#if PROTOCOL_VERSION > 767 /* > 1.21.1 */
2#pragma once
8
9#include <optional>
10
11namespace ProtocolCraft
12{
13 namespace Components
14 {
16 {
19#if PROTOCOL_VERSION < 769 /* < 1.21.4 */
20 SERIALIZED_FIELD(Model, std::optional<Identifier>);
21#else
22 SERIALIZED_FIELD(AssetId, std::optional<Identifier>);
23#endif
24 SERIALIZED_FIELD(CameraOverlay, std::optional<Identifier>);
25 SERIALIZED_FIELD(AllowedEntities, std::optional<HolderSet>);
26 SERIALIZED_FIELD(Dispensable, bool);
27 SERIALIZED_FIELD(Swappable, bool);
28 SERIALIZED_FIELD(DamageOnHurt, bool);
29
31 };
32 }
33}
34#endif
#define SERIALIZED_FIELD(Name,...)
SERIALIZED_FIELD(CameraOverlay, std::optional< Identifier >)
SERIALIZED_FIELD(AllowedEntities, std::optional< HolderSet >)
SERIALIZED_FIELD(AssetId, std::optional< Identifier >)
SERIALIZED_FIELD(EquipSound, Holder< SoundEvent >)