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