Botcraft
1.21.5
Loading...
Searching...
No Matches
Instrument.hpp
Go to the documentation of this file.
1
#if PROTOCOL_VERSION > 765
/* > 1.20.4 */
2
#pragma once
3
#include "
protocolCraft/NetworkType.hpp
"
4
#include "
protocolCraft/Types/Holder.hpp
"
5
#include "
protocolCraft/Types/Sound/SoundEvent.hpp
"
6
#include "
protocolCraft/Types/Chat/Chat.hpp
"
7
8
namespace
ProtocolCraft
9
{
10
namespace
Components
11
{
12
class
Instrument
:
public
NetworkType
13
{
14
SERIALIZED_FIELD
(
SoundEvent
,
Holder<ProtocolCraft::SoundEvent>
);
15
SERIALIZED_FIELD
(UseDuration,
float
);
16
SERIALIZED_FIELD
(Range,
float
);
17
SERIALIZED_FIELD
(Description,
Chat
);
18
19
DECLARE_READ_WRITE_SERIALIZE
;
20
};
21
}
22
}
23
#endif
Chat.hpp
Holder.hpp
NetworkType.hpp
SoundEvent.hpp
ProtocolCraft::Chat
Definition
Chat.hpp:18
ProtocolCraft::Components::Instrument
Definition
Instrument.hpp:13
ProtocolCraft::Components::Instrument::SERIALIZED_FIELD
SERIALIZED_FIELD(Description, Chat)
ProtocolCraft::Components::Instrument::SERIALIZED_FIELD
SERIALIZED_FIELD(UseDuration, float)
ProtocolCraft::Components::Instrument::SERIALIZED_FIELD
SERIALIZED_FIELD(SoundEvent, Holder< ProtocolCraft::SoundEvent >)
ProtocolCraft::Components::Instrument::SERIALIZED_FIELD
SERIALIZED_FIELD(Range, float)
ProtocolCraft::Components::Instrument::DECLARE_READ_WRITE_SERIALIZE
DECLARE_READ_WRITE_SERIALIZE
Definition
Instrument.hpp:19
ProtocolCraft::Holder
Definition
Holder.hpp:11
ProtocolCraft::NetworkType
Definition
NetworkType.hpp:11
ProtocolCraft::SoundEvent
Definition
SoundEvent.hpp:10
ProtocolCraft
Definition
ItemUtilities.hpp:8
protocolCraft
include
protocolCraft
Types
Components
Subtypes
Instrument.hpp
Generated by
1.9.8