Botcraft
1.21.5
Loading...
Searching...
No Matches
DataComponentTypeInstrument.hpp
Go to the documentation of this file.
1
#if PROTOCOL_VERSION > 765
/* > 1.20.4 */
2
#pragma once
3
#include "
protocolCraft/Types/Components/DataComponentType.hpp
"
4
#include "
protocolCraft/Types/Holder.hpp
"
5
#if PROTOCOL_VERSION > 769
/* > 1.21.4 */
6
#include "
protocolCraft/Types/Either.hpp
"
7
#endif
8
#include "
protocolCraft/Types/Components/Subtypes/Instrument.hpp
"
9
10
namespace
ProtocolCraft
11
{
12
namespace
Components
13
{
14
class
DataComponentTypeInstrument
:
public
DataComponentType
15
{
16
#if PROTOCOL_VERSION < 770
/* < 1.21.5 */
17
SERIALIZED_FIELD
(
Instrument
,
Holder<ProtocolCraft::Components::Instrument>
);
18
#else
19
SERIALIZED_FIELD
(
Instrument
,
Either
<
Holder<ProtocolCraft::Components::Instrument>
,
Identifier
>);
20
#endif
21
22
DECLARE_READ_WRITE_SERIALIZE
;
23
};
24
}
25
}
26
#endif
SERIALIZED_FIELD
#define SERIALIZED_FIELD(Name,...)
Definition
AutoSerializedMacros.hpp:77
DataComponentType.hpp
Either.hpp
Holder.hpp
Instrument.hpp
ProtocolCraft::Components::DataComponentTypeInstrument
Definition
DataComponentTypeInstrument.hpp:15
ProtocolCraft::Components::DataComponentTypeInstrument::DECLARE_READ_WRITE_SERIALIZE
DECLARE_READ_WRITE_SERIALIZE
Definition
DataComponentTypeInstrument.hpp:22
ProtocolCraft::Components::DataComponentTypeInstrument::SERIALIZED_FIELD
SERIALIZED_FIELD(Instrument, Either< Holder< ProtocolCraft::Components::Instrument >, Identifier >)
ProtocolCraft::Components::DataComponentType
Definition
DataComponentType.hpp:10
ProtocolCraft::Components::Instrument
Definition
Instrument.hpp:13
ProtocolCraft::Either
Definition
Either.hpp:11
ProtocolCraft::Holder
Definition
Holder.hpp:11
ProtocolCraft::Identifier
Definition
Identifier.hpp:8
ProtocolCraft
Definition
ItemUtilities.hpp:8
protocolCraft
include
protocolCraft
Types
Components
DataComponentTypeInstrument.hpp
Generated by
1.9.8