Botcraft
26.2
Loading...
Searching...
No Matches
DataComponentTypeBundleContents.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
#if PROTOCOL_VERSION < 775
/* < 26.1 */
5
#include "
protocolCraft/Types/Item/Slot.hpp
"
6
#else
7
#include "
protocolCraft/Types/Item/ItemStackTemplate.hpp
"
8
#endif
9
10
#include <vector>
11
12
namespace
ProtocolCraft
13
{
14
namespace
Components
15
{
16
class
DataComponentTypeBundleContents
:
public
DataComponentType
17
{
18
#if PROTOCOL_VERSION < 775
/* < 26.1 */
19
SERIALIZED_FIELD
(List, std::vector<Slot>);
20
#else
21
SERIALIZED_FIELD
(List, std::vector<ItemStackTemplate>);
22
#endif
23
24
DECLARE_READ_WRITE_SERIALIZE
;
25
};
26
}
27
}
28
#endif
SERIALIZED_FIELD
#define SERIALIZED_FIELD(Name,...)
Definition
AutoSerializedMacros.hpp:77
DataComponentType.hpp
ItemStackTemplate.hpp
Slot.hpp
ProtocolCraft::Components::DataComponentTypeBundleContents
Definition
DataComponentTypeBundleContents.hpp:17
ProtocolCraft::Components::DataComponentTypeBundleContents::SERIALIZED_FIELD
SERIALIZED_FIELD(List, std::vector< ItemStackTemplate >)
ProtocolCraft::Components::DataComponentTypeBundleContents::DECLARE_READ_WRITE_SERIALIZE
DECLARE_READ_WRITE_SERIALIZE
Definition
DataComponentTypeBundleContents.hpp:24
ProtocolCraft::Components::DataComponentType
Definition
DataComponentType.hpp:10
ProtocolCraft
Definition
ItemUtilities.hpp:8
protocolCraft
include
protocolCraft
Types
Components
DataComponentTypeBundleContents.hpp
Generated by
1.9.8