Botcraft
1.21.10
Loading...
Searching...
No Matches
DataComponentTypeResolvableProfile.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
5
#if PROTOCOL_VERSION < 773
/* < 1.21.9 */
6
#include "
protocolCraft/Types/GameProfile/GameProfileProperty.hpp
"
7
8
#include <optional>
9
#include <string>
10
#include <vector>
11
#else
12
#include "
protocolCraft/Types/Either.hpp
"
13
#include "
protocolCraft/Types/GameProfile/GameProfile.hpp
"
14
#include "
protocolCraft/Types/Components/Subtypes/PartialResolvableProfile.hpp
"
15
#include "
protocolCraft/Types/Components/Subtypes/PlayerSkinPatch.hpp
"
16
#endif
17
18
namespace
ProtocolCraft
19
{
20
namespace
Components
21
{
22
class
DataComponentTypeResolvableProfile
:
public
DataComponentType
23
{
24
#if PROTOCOL_VERSION < 773
/* < 1.21.9 */
25
SERIALIZED_FIELD
(Name, std::optional<std::string>);
26
SERIALIZED_FIELD
(
Uuid
, std::optional<UUID>);
27
SERIALIZED_FIELD
(Properties, std::vector<GameProfileProperty>);
28
#else
29
SERIALIZED_FIELD
(Unpack,
Either<GameProfile, PartialResolvableProfile>
);
30
SERIALIZED_FIELD
(SkinPatch,
PlayerSkinPatch
);
31
#endif
32
33
DECLARE_READ_WRITE_SERIALIZE
;
34
};
35
}
36
}
37
#endif
SERIALIZED_FIELD
#define SERIALIZED_FIELD(Name,...)
Definition
AutoSerializedMacros.hpp:77
DataComponentType.hpp
Either.hpp
GameProfileProperty.hpp
GameProfile.hpp
PartialResolvableProfile.hpp
PlayerSkinPatch.hpp
ProtocolCraft::Components::DataComponentTypeResolvableProfile
Definition
DataComponentTypeResolvableProfile.hpp:23
ProtocolCraft::Components::DataComponentTypeResolvableProfile::DECLARE_READ_WRITE_SERIALIZE
DECLARE_READ_WRITE_SERIALIZE
Definition
DataComponentTypeResolvableProfile.hpp:33
ProtocolCraft::Components::DataComponentTypeResolvableProfile::SERIALIZED_FIELD
SERIALIZED_FIELD(SkinPatch, PlayerSkinPatch)
ProtocolCraft::Components::DataComponentTypeResolvableProfile::SERIALIZED_FIELD
SERIALIZED_FIELD(Unpack, Either< GameProfile, PartialResolvableProfile >)
ProtocolCraft::Components::DataComponentType
Definition
DataComponentType.hpp:10
ProtocolCraft::Components::PlayerSkinPatch
Definition
PlayerSkinPatch.hpp:14
ProtocolCraft::Either
Definition
Either.hpp:11
ProtocolCraft
Definition
ItemUtilities.hpp:8
ProtocolCraft::BrigadierPropertyType::Uuid
@ Uuid
protocolCraft
include
protocolCraft
Types
Components
DataComponentTypeResolvableProfile.hpp
Generated by
1.9.8