Botcraft
26.1.2
Loading...
Searching...
No Matches
DataComponentTypeJukeboxPlayable.hpp
Go to the documentation of this file.
1
#if PROTOCOL_VERSION > 766
/* > 1.20.6 */
2
#pragma once
3
#include "
protocolCraft/Types/Components/DataComponentType.hpp
"
4
#include "
protocolCraft/Types/Components/Subtypes/JukeboxSong.hpp
"
5
#if PROTOCOL_VERSION < 775
/* < 26.1 */
6
#include "
protocolCraft/Types/Either.hpp
"
7
#include "
protocolCraft/Types/Holder.hpp
"
8
#include "
protocolCraft/Types/Identifier.hpp
"
9
#endif
10
11
namespace
ProtocolCraft
12
{
13
namespace
Components
14
{
15
class
DataComponentTypeJukeboxPlayable
:
public
DataComponentType
16
{
17
#if PROTOCOL_VERSION < 775
/* < 26.1 */
18
SERIALIZED_FIELD
(Song,
Either
<
Holder<JukeboxSong>
,
Identifier
>);
19
#else
20
SERIALIZED_FIELD
(Song,
JukeboxSong
);
21
#endif
22
#if PROTOCOL_VERSION < 770
/* < 1.21.5 */
23
SERIALIZED_FIELD
(ShowInTooltip,
bool
);
24
#endif
25
26
DECLARE_READ_WRITE_SERIALIZE
;
27
};
28
}
29
}
30
#endif
SERIALIZED_FIELD
#define SERIALIZED_FIELD(Name,...)
Definition
AutoSerializedMacros.hpp:77
DataComponentType.hpp
Either.hpp
Holder.hpp
Identifier.hpp
JukeboxSong.hpp
ProtocolCraft::Components::DataComponentTypeJukeboxPlayable
Definition
DataComponentTypeJukeboxPlayable.hpp:16
ProtocolCraft::Components::DataComponentTypeJukeboxPlayable::DECLARE_READ_WRITE_SERIALIZE
DECLARE_READ_WRITE_SERIALIZE
Definition
DataComponentTypeJukeboxPlayable.hpp:26
ProtocolCraft::Components::DataComponentTypeJukeboxPlayable::SERIALIZED_FIELD
SERIALIZED_FIELD(Song, JukeboxSong)
ProtocolCraft::Components::DataComponentType
Definition
DataComponentType.hpp:10
ProtocolCraft::Components::JukeboxSong
Definition
JukeboxSong.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
DataComponentTypeJukeboxPlayable.hpp
Generated by
1.9.8