Botcraft
26.2
Loading...
Searching...
No Matches
DataComponentTypeUseRemainder.hpp
Go to the documentation of this file.
1
#if PROTOCOL_VERSION > 767
/* > 1.21.1 */
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
namespace
ProtocolCraft
11
{
12
namespace
Components
13
{
14
class
DataComponentTypeUseRemainder
:
public
DataComponentType
15
{
16
#if PROTOCOL_VERSION < 775
/* < 26.1 */
17
SERIALIZED_FIELD
(ConvertInto,
Slot
);
18
#else
19
SERIALIZED_FIELD
(ConvertInto,
ItemStackTemplate
);
20
#endif
21
22
DECLARE_READ_WRITE_SERIALIZE
;
23
};
24
}
25
}
26
#endif
SERIALIZED_FIELD
#define SERIALIZED_FIELD(Name,...)
Definition
AutoSerializedMacros.hpp:77
DataComponentType.hpp
ItemStackTemplate.hpp
Slot.hpp
ProtocolCraft::Components::DataComponentTypeUseRemainder
Definition
DataComponentTypeUseRemainder.hpp:15
ProtocolCraft::Components::DataComponentTypeUseRemainder::DECLARE_READ_WRITE_SERIALIZE
DECLARE_READ_WRITE_SERIALIZE
Definition
DataComponentTypeUseRemainder.hpp:22
ProtocolCraft::Components::DataComponentTypeUseRemainder::SERIALIZED_FIELD
SERIALIZED_FIELD(ConvertInto, ItemStackTemplate)
ProtocolCraft::Components::DataComponentType
Definition
DataComponentType.hpp:10
ProtocolCraft::ItemStackTemplate
Definition
ItemStackTemplate.hpp:10
ProtocolCraft::Slot
Definition
Slot.hpp:13
ProtocolCraft
Definition
ItemUtilities.hpp:8
protocolCraft
include
protocolCraft
Types
Components
DataComponentTypeUseRemainder.hpp
Generated by
1.9.8