Botcraft 26.3
Loading...
Searching...
No Matches
Instrument.hpp
Go to the documentation of this file.
1#if PROTOCOL_VERSION > 765 /* > 1.20.4 */
2#pragma once
7
8namespace ProtocolCraft
9{
10 namespace Components
11 {
12 class Instrument : public NetworkType
13 {
15#if PROTOCOL_VERSION < 768 /* < 1.21.2 */
16 SERIALIZED_FIELD(UseDuration, VarInt);
17#else
18 SERIALIZED_FIELD(UseDuration, float);
19#endif
20 SERIALIZED_FIELD(Range, float);
21#if PROTOCOL_VERSION > 776 /* > 26.2 */
22 SERIALIZED_FIELD(DurabilityDamage, VarInt);
23#endif
24 SERIALIZED_FIELD(Description, Chat);
25
27 };
28 }
29}
30#endif
#define SERIALIZED_FIELD(Name,...)
SERIALIZED_FIELD(DurabilityDamage, VarInt)
SERIALIZED_FIELD(SoundEvent, Holder< ProtocolCraft::SoundEvent >)