LeviLamina
Loading...
Searching...
No Matches
Potion Class Reference

Public Member Functions

MCAPI Potion (::std::string_view const nameId, ::std::string_view const prefix)
MCAPI Potion (::std::string_view const nameId, ::std::string_view const descriptionID, ::MobEffectInstance const &mobEffect, ::PotionVariant var)
MCAPI Potion (::std::string_view const nameId, ::std::vector<::std::string > descriptionIDs, ::std::vector<::MobEffectInstance > mobEffects, ::PotionVariant var)
MCAPI void appendFormattedPotionText (::Bedrock::Safety::RedactableString &inOutHovertext, ::PotionType potionType, ::PotionVariant potionVariant, ::Player const &player, float timeMod) const
MCAPI::std::string getDescriptionId () const
MCAPI::std::string getDescriptionId (::PotionType potionType) const
MCFOLD::std::string getNameId () const
MCAPI::std::string getPotencyDescription (::PotionType potionType, float timeMod) const
MCFOLD::std::string getPrefix () const
MCAPI void * $ctor (::std::string_view const nameId, ::std::string_view const prefix)
MCAPI void * $ctor (::std::string_view const nameId, ::std::string_view const descriptionID, ::MobEffectInstance const &mobEffect, ::PotionVariant var)
MCAPI void * $ctor (::std::string_view const nameId, ::std::vector<::std::string > descriptionIDs, ::std::vector<::MobEffectInstance > mobEffects, ::PotionVariant var)

Static Public Member Functions

static MCAPI void addPotion (::std::shared_ptr<::Potion const > const potion)
static MCAPI void appendMobEffectText (::Bedrock::Safety::RedactableString &inOutHovertext, ::PotionVariant potionVariant, uint mobEffectId, int amplifier, ::Player const &player)
static MCAPI ::std::string effectDurationToString (::PotionType potionType, float timeMod, ::MobEffectInstance const &effect)
static MCAPI ::std::string effectPotencyToString (::MobEffectInstance const &effect)
static MCAPI ::std::string getBasePotion (::PotionType type)
static MCAPI ::std::string getPotencyDescription (::PotionType potionType, float timeMod, ::std::string_view const descID, ::MobEffectInstance const &effect)
static MCAPI ::std::shared_ptr<::Potion const > getPotion (::std::string_view potionNameId)
static MCAPI void initPotions (::BaseGameVersion const &baseGameVersion, ::Experiments const &experiments)
static MCAPI ::std::shared_ptr<::Potion const > const & Awkward ()
static MCAPI ::std::shared_ptr<::Potion const > const & FireResistance ()
static MCAPI ::std::shared_ptr<::Potion const > const & Healing ()
static MCAPI ::std::shared_ptr<::Potion const > const & Poison ()
static MCAPI ::std::shared_ptr<::Potion const > const & Slowness ()
static MCAPI ::std::shared_ptr<::Potion const > const & Swiftness ()
static MCAPI ::std::shared_ptr<::Potion const > const & Water ()
static MCAPI ::std::shared_ptr<::Potion const > const & WaterBreathing ()
static MCAPI ::std::shared_ptr<::Potion const > const & Weakness ()
static MCAPI int & mLastId ()
static MCAPI ::std::array<::std::shared_ptr<::Potion const >, 64 > & mPotionsById ()
static MCAPI ::std::unordered_map<::std::string, int > & mPotionsByName ()

Public Attributes

::ll::TypedStorage< 4, 4, int > mId
::ll::TypedStorage< 8, 32, ::std::string > mNameId
::ll::TypedStorage< 8, 32, ::std::string > mPrefix
::ll::TypedStorage< 8, 24, ::std::vector<::MobEffectInstance > > mEffects
::ll::TypedStorage< 8, 24, ::std::vector<::std::string > > mDescriptionIds
::ll::TypedStorage< 4, 4, ::PotionVariant > mVar

The documentation for this class was generated from the following file: