Botcraft
1.21.4
Loading...
Searching...
No Matches
DataComponentTypeUseCooldown.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
6
#include <optional>
7
8
namespace
ProtocolCraft
9
{
10
namespace
Components
11
{
12
class
DataComponentTypeUseCooldown
:
public
DataComponentType
13
{
14
SERIALIZED_FIELD
(Seconds,
float
);
15
SERIALIZED_FIELD
(CooldownGroup, std::optional<Identifier>);
16
17
DECLARE_READ_WRITE_SERIALIZE
;
18
};
19
}
20
}
21
#endif
DataComponentType.hpp
Identifier.hpp
ProtocolCraft::Components::DataComponentTypeUseCooldown
Definition
DataComponentTypeUseCooldown.hpp:13
ProtocolCraft::Components::DataComponentTypeUseCooldown::DECLARE_READ_WRITE_SERIALIZE
DECLARE_READ_WRITE_SERIALIZE
Definition
DataComponentTypeUseCooldown.hpp:17
ProtocolCraft::Components::DataComponentTypeUseCooldown::SERIALIZED_FIELD
SERIALIZED_FIELD(Seconds, float)
ProtocolCraft::Components::DataComponentTypeUseCooldown::SERIALIZED_FIELD
SERIALIZED_FIELD(CooldownGroup, std::optional< Identifier >)
ProtocolCraft::Components::DataComponentType
Definition
DataComponentType.hpp:10
ProtocolCraft
Definition
ItemUtilities.hpp:8
protocolCraft
include
protocolCraft
Types
Components
DataComponentTypeUseCooldown.hpp
Generated by
1.9.8