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
5
6namespace ProtocolCraft
7{
8 namespace Components
9 {
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
20 };
21 }
22}
23#endif
SERIALIZED_FIELD(CustomEffects, std::vector< MobEffectInstance >)
SERIALIZED_FIELD(PotionId, std::optional< VarInt >)
SERIALIZED_FIELD(CustomColor, std::optional< int >)
SERIALIZED_FIELD(CustomName, std::optional< std::string >)