Botcraft
26.3
Loading...
Searching...
No Matches
DataComponentTypePotDecorations.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 < 777
/* < 26.3 */
6
#include <vector>
7
#else
8
#include "
protocolCraft/Types/Item/Slot.hpp
"
9
#include <optional>
10
#endif
11
12
namespace
ProtocolCraft
13
{
14
namespace
Components
15
{
16
class
DataComponentTypePotDecorations
:
public
DataComponentType
17
{
18
#if PROTOCOL_VERSION < 777
/* < 26.3 */
19
SERIALIZED_FIELD
(Sides, std::vector<VarInt>);
20
#else
21
SERIALIZED_FIELD
(Back, std::optional<Slot>);
22
SERIALIZED_FIELD
(Left, std::optional<Slot>);
23
SERIALIZED_FIELD
(Right, std::optional<Slot>);
24
SERIALIZED_FIELD
(Front, std::optional<Slot>);
25
#endif
26
27
DECLARE_READ_WRITE_SERIALIZE
;
28
};
29
}
30
}
31
#endif
SERIALIZED_FIELD
#define SERIALIZED_FIELD(Name,...)
Definition
AutoSerializedMacros.hpp:77
DataComponentType.hpp
Slot.hpp
ProtocolCraft::Components::DataComponentTypePotDecorations
Definition
DataComponentTypePotDecorations.hpp:17
ProtocolCraft::Components::DataComponentTypePotDecorations::SERIALIZED_FIELD
SERIALIZED_FIELD(Left, std::optional< Slot >)
ProtocolCraft::Components::DataComponentTypePotDecorations::SERIALIZED_FIELD
SERIALIZED_FIELD(Back, std::optional< Slot >)
ProtocolCraft::Components::DataComponentTypePotDecorations::SERIALIZED_FIELD
SERIALIZED_FIELD(Front, std::optional< Slot >)
ProtocolCraft::Components::DataComponentTypePotDecorations::DECLARE_READ_WRITE_SERIALIZE
DECLARE_READ_WRITE_SERIALIZE
Definition
DataComponentTypePotDecorations.hpp:27
ProtocolCraft::Components::DataComponentTypePotDecorations::SERIALIZED_FIELD
SERIALIZED_FIELD(Right, std::optional< Slot >)
ProtocolCraft::Components::DataComponentType
Definition
DataComponentType.hpp:10
ProtocolCraft
Definition
ItemUtilities.hpp:8
protocolCraft
include
protocolCraft
Types
Components
DataComponentTypePotDecorations.hpp
Generated by
1.9.8