Botcraft
1.21.4
Loading...
Searching...
No Matches
DataComponentTypePotionContents.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
#include "
protocolCraft/Types/Components/Subtypes/MobEffectInstance.hpp
"
5
6
namespace
ProtocolCraft
7
{
8
namespace
Components
9
{
10
class
DataComponentTypePotionContents
:
public
DataComponentType
11
{
12
SERIALIZED_FIELD
(PotionId, std::optional<VarInt>);
13
SERIALIZED_FIELD
(CustomColor, std::optional<int>);
14
SERIALIZED_FIELD
(CustomEffects, std::vector<MobEffectInstance>);
15
16
DECLARE_READ_WRITE_SERIALIZE
;
17
};
18
}
19
}
20
#endif
DataComponentType.hpp
MobEffectInstance.hpp
ProtocolCraft::Components::DataComponentTypePotionContents
Definition
DataComponentTypePotionContents.hpp:11
ProtocolCraft::Components::DataComponentTypePotionContents::SERIALIZED_FIELD
SERIALIZED_FIELD(CustomEffects, std::vector< MobEffectInstance >)
ProtocolCraft::Components::DataComponentTypePotionContents::SERIALIZED_FIELD
SERIALIZED_FIELD(PotionId, std::optional< VarInt >)
ProtocolCraft::Components::DataComponentTypePotionContents::DECLARE_READ_WRITE_SERIALIZE
DECLARE_READ_WRITE_SERIALIZE
Definition
DataComponentTypePotionContents.hpp:16
ProtocolCraft::Components::DataComponentTypePotionContents::SERIALIZED_FIELD
SERIALIZED_FIELD(CustomColor, std::optional< int >)
ProtocolCraft::Components::DataComponentType
Definition
DataComponentType.hpp:10
ProtocolCraft
Definition
ItemUtilities.hpp:8
protocolCraft
include
protocolCraft
Types
Components
DataComponentTypePotionContents.hpp
Generated by
1.9.8