Botcraft
1.21.5
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/Identifier.hpp
"
5
#include "
protocolCraft/Types/Either.hpp
"
6
#include "
protocolCraft/Types/Holder.hpp
"
7
#include "
protocolCraft/Types/Components/Subtypes/JukeboxSong.hpp
"
8
9
namespace
ProtocolCraft
10
{
11
namespace
Components
12
{
13
class
DataComponentTypeJukeboxPlayable
:
public
DataComponentType
14
{
15
SERIALIZED_FIELD
(Song,
Either
<
Holder<JukeboxSong>
,
Identifier
>);
16
#if PROTOCOL_VERSION < 770
/* < 1.21.5 */
17
SERIALIZED_FIELD
(ShowInTooltip,
bool
);
18
#endif
19
20
DECLARE_READ_WRITE_SERIALIZE
;
21
};
22
}
23
}
24
#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:14
ProtocolCraft::Components::DataComponentTypeJukeboxPlayable::DECLARE_READ_WRITE_SERIALIZE
DECLARE_READ_WRITE_SERIALIZE
Definition
DataComponentTypeJukeboxPlayable.hpp:20
ProtocolCraft::Components::DataComponentTypeJukeboxPlayable::SERIALIZED_FIELD
SERIALIZED_FIELD(Song, Either< Holder< JukeboxSong >, Identifier >)
ProtocolCraft::Components::DataComponentType
Definition
DataComponentType.hpp:10
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