Botcraft 26.2
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 SERIALIZED_FIELD(Description, Chat);
22
24 };
25 }
26}
27#endif
#define SERIALIZED_FIELD(Name,...)
SERIALIZED_FIELD(SoundEvent, Holder< ProtocolCraft::SoundEvent >)