Botcraft
1.21.5
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
#if PROTOCOL_VERSION > 767
/* > 1.21.1 */
16
SERIALIZED_FIELD
(
CustomName
, std::optional<std::string>);
17
#endif
18
19
DECLARE_READ_WRITE_SERIALIZE
;
20
};
21
}
22
}
23
#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:19
ProtocolCraft::Components::DataComponentTypePotionContents::SERIALIZED_FIELD
SERIALIZED_FIELD(CustomColor, std::optional< int >)
ProtocolCraft::Components::DataComponentTypePotionContents::SERIALIZED_FIELD
SERIALIZED_FIELD(CustomName, std::optional< std::string >)
ProtocolCraft::Components::DataComponentType
Definition
DataComponentType.hpp:10
ProtocolCraft::Components::DataComponentTypes::CustomName
@ CustomName
ProtocolCraft
Definition
ItemUtilities.hpp:8
protocolCraft
include
protocolCraft
Types
Components
DataComponentTypePotionContents.hpp
Generated by
1.9.8