3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/world/effect/MobEffectInstance.h"
7#include "mc/world/item/alchemy/PotionType.h"
8#include "mc/world/item/alchemy/PotionVariant.h"
22 ::ll::TypedStorage<4, 4, int> mId;
23 ::ll::TypedStorage<8, 32, ::std::string> mNameId;
24 ::ll::TypedStorage<8, 32, ::std::string> mPrefix;
25 ::ll::TypedStorage<8, 24, ::std::vector<::MobEffectInstance>> mEffects;
26 ::ll::TypedStorage<8, 24, ::std::vector<::std::string>> mDescriptionIds;
27 ::ll::TypedStorage<4, 4, ::PotionVariant> mVar;
37 MCNAPI
Potion(::std::string_view
const nameId, ::std::string_view
const prefix);
40 ::std::string_view
const nameId,
41 ::std::string_view
const descriptionID,
47 ::std::string_view
const nameId,
48 ::std::vector<::std::string> descriptionIDs,
49 ::std::vector<::MobEffectInstance> mobEffects,
55 ::PotionType potionType,
56 ::PotionVariant potionVariant,
75 MCNAPI
static void addPotion(::std::shared_ptr<::Potion const>
const potion);
79 ::PotionVariant potionVariant,
85 MCAPI static ::std::string
86 effectDurationToString(::PotionType potionType,
float timeMod,
::MobEffectInstance const& effect);
93 ::PotionType potionType,
95 ::std::string_view
const descID,
99 MCNAPI static ::std::shared_ptr<::Potion const>
getPotion(::std::string_view potionNameId);
107 MCNAPI static ::std::shared_ptr<::Potion const>
const&
Awkward();
111 MCNAPI static ::std::shared_ptr<::Potion const>
const&
Healing();
113 MCNAPI static ::std::shared_ptr<::Potion const>
const&
Poison();
115 MCNAPI static ::std::shared_ptr<::Potion const>
const&
Slowness();
117 MCNAPI static ::std::shared_ptr<::Potion const>
const&
Swiftness();
119 MCNAPI static ::std::shared_ptr<::Potion const>
const&
Water();
123 MCNAPI static ::std::shared_ptr<::Potion const>
const&
Weakness();
127 MCAPI static ::std::array<::std::shared_ptr<::Potion const>, 64>& mPotionsById();
135 MCNAPI
void*
$ctor(::std::string_view
const nameId, ::std::string_view
const prefix);
138 ::std::string_view
const nameId,
139 ::std::string_view
const descriptionID,
145 ::std::string_view
const nameId,
146 ::std::vector<::std::string> descriptionIDs,
147 ::std::vector<::MobEffectInstance> mobEffects,
Definition BaseGameVersion.h:8
Definition RedactableString.h:10
Definition Experiments.h:14
Definition MobEffectInstance.h:16
static MCAPI ::std::unordered_map<::std::string, int > & mPotionsByName()
MCAPI::std::string getPotencyDescription(::PotionType potionType, float timeMod) const
MCAPI::std::string getDescriptionId() const
static MCAPI void addPotion(::std::shared_ptr<::Potion const > const potion)
static MCAPI int & mLastId()
MCAPI void * $ctor(::std::string_view const nameId, ::std::string_view const descriptionID, ::MobEffectInstance const &mobEffect, ::PotionVariant var)
MCAPI Potion(::std::string_view const nameId, ::std::string_view const descriptionID, ::MobEffectInstance const &mobEffect, ::PotionVariant var)
MCAPI::std::string getNameId() const
static MCAPI ::std::shared_ptr<::Potion const > getPotion(::std::string_view potionNameId)
MCAPI void * $ctor(::std::string_view const nameId, ::std::string_view const prefix)
static MCAPI void appendMobEffectText(::Bedrock::Safety::RedactableString &inOutHovertext, ::PotionVariant potionVariant, uint mobEffectId, int amplifier, ::Player const &player)
MCAPI Potion(::std::string_view const nameId, ::std::string_view const prefix)
static MCAPI ::std::shared_ptr<::Potion const > const & FireResistance()
MCAPI void * $ctor(::std::string_view const nameId, ::std::vector<::std::string > descriptionIDs, ::std::vector<::MobEffectInstance > mobEffects, ::PotionVariant var)
static MCAPI ::std::string getBasePotion(::PotionType type)
static MCAPI ::std::shared_ptr<::Potion const > const & Weakness()
static MCAPI ::std::shared_ptr<::Potion const > const & Swiftness()
static MCAPI ::std::string getPotencyDescription(::PotionType potionType, float timeMod, ::std::string_view const descID, ::MobEffectInstance const &effect)
MCAPI void appendFormattedPotionText(::Bedrock::Safety::RedactableString &inOutHovertext, ::PotionType potionType, ::PotionVariant potionVariant, ::Player const &player, float timeMod) const
MCAPI::std::string getPrefix() const
static MCAPI ::std::shared_ptr<::Potion const > const & WaterBreathing()
static MCAPI ::std::shared_ptr<::Potion const > const & Slowness()
static MCAPI ::std::string effectPotencyToString(::MobEffectInstance const &effect)
MCAPI Potion(::std::string_view const nameId, ::std::vector<::std::string > descriptionIDs, ::std::vector<::MobEffectInstance > mobEffects, ::PotionVariant var)
static MCAPI void initPotions(::BaseGameVersion const &baseGameVersion, ::Experiments const &experiments)
static MCAPI ::std::shared_ptr<::Potion const > const & Poison()
static MCAPI ::std::shared_ptr<::Potion const > const & Water()
static MCAPI ::std::shared_ptr<::Potion const > const & Healing()
static MCAPI ::std::shared_ptr<::Potion const > const & Awkward()