Botcraft
1.21.4
Loading...
Searching...
No Matches
DataComponentTypeConsumable.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/Holder.hpp
"
5
#include "
protocolCraft/Types/Sound/SoundEvent.hpp
"
6
#include "
protocolCraft/Types/Components/Subtypes/ConsumeEffects/ConsumeEffect.hpp
"
7
8
namespace
ProtocolCraft
9
{
10
namespace
Components
11
{
12
class
DataComponentTypeConsumable
:
public
DataComponentType
13
{
14
SERIALIZED_FIELD
(ConsumeSeconds,
float
);
15
SERIALIZED_FIELD
(Animation,
VarInt
);
16
SERIALIZED_FIELD
(Sound,
Holder<SoundEvent>
);
17
SERIALIZED_FIELD
(HasConsumeParticles,
bool
);
18
SERIALIZED_FIELD
(OnConsumeEffects, std::vector<ConsumeEffect>);
19
20
DECLARE_READ_WRITE_SERIALIZE
;
21
};
22
}
23
}
24
#endif
ConsumeEffect.hpp
DataComponentType.hpp
Holder.hpp
SoundEvent.hpp
ProtocolCraft::Components::DataComponentTypeConsumable
Definition
DataComponentTypeConsumable.hpp:13
ProtocolCraft::Components::DataComponentTypeConsumable::SERIALIZED_FIELD
SERIALIZED_FIELD(Animation, VarInt)
ProtocolCraft::Components::DataComponentTypeConsumable::DECLARE_READ_WRITE_SERIALIZE
DECLARE_READ_WRITE_SERIALIZE
Definition
DataComponentTypeConsumable.hpp:20
ProtocolCraft::Components::DataComponentTypeConsumable::SERIALIZED_FIELD
SERIALIZED_FIELD(ConsumeSeconds, float)
ProtocolCraft::Components::DataComponentTypeConsumable::SERIALIZED_FIELD
SERIALIZED_FIELD(HasConsumeParticles, bool)
ProtocolCraft::Components::DataComponentTypeConsumable::SERIALIZED_FIELD
SERIALIZED_FIELD(OnConsumeEffects, std::vector< ConsumeEffect >)
ProtocolCraft::Components::DataComponentTypeConsumable::SERIALIZED_FIELD
SERIALIZED_FIELD(Sound, Holder< SoundEvent >)
ProtocolCraft::Components::DataComponentType
Definition
DataComponentType.hpp:10
ProtocolCraft::Holder
Definition
Holder.hpp:11
ProtocolCraft
Definition
ItemUtilities.hpp:8
ProtocolCraft::VarType
Definition
Templates.hpp:26
protocolCraft
include
protocolCraft
Types
Components
DataComponentTypeConsumable.hpp
Generated by
1.9.8