Skip to content
LeviMC
English
AutoLightDark
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
MCAPI::std::string getNameId () const
MCAPI::std::string getPotencyDescription (::PotionType potionType, float timeMod) const
MCAPI::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

Constructor & Destructor Documentation

◆ Potion() [1/3]

MCAPI Potion::Potion ( ::std::string_view const nameId,
::std::string_view const prefix )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ Potion() [2/3]

MCAPI Potion::Potion ( ::std::string_view const nameId,
::std::string_view const descriptionID,
::MobEffectInstance const & mobEffect,
::PotionVariant var )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ Potion() [3/3]

MCAPI Potion::Potion ( ::std::string_view const nameId,
::std::vector<::std::string > descriptionIDs,
::std::vector<::MobEffectInstance > mobEffects,
::PotionVariant var )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

Member Function Documentation

◆ appendFormattedPotionText()

MCAPI void Potion::appendFormattedPotionText ( ::Bedrock::Safety::RedactableString & inOutHovertext,
::PotionType potionType,
::PotionVariant potionVariant,
::Player const & player,
float timeMod ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ getDescriptionId()

MCAPI::std::string Potion::getDescriptionId ( ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ getNameId()

MCAPI::std::string Potion::getNameId ( ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ getPotencyDescription() [1/2]

MCAPI::std::string Potion::getPotencyDescription ( ::PotionType potionType,
float timeMod ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ getPrefix()

MCAPI::std::string Potion::getPrefix ( ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ addPotion()

MCAPI void Potion::addPotion ( ::std::shared_ptr<::Potion const > const potion)
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ appendMobEffectText()

MCAPI void Potion::appendMobEffectText ( ::Bedrock::Safety::RedactableString & inOutHovertext,
::PotionVariant potionVariant,
uint mobEffectId,
int amplifier,
::Player const & player )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ effectPotencyToString()

MCAPI ::std::string Potion::effectPotencyToString ( ::MobEffectInstance const & effect)
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ getBasePotion()

MCAPI ::std::string Potion::getBasePotion ( ::PotionType type)
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ getPotencyDescription() [2/2]

MCAPI ::std::string Potion::getPotencyDescription ( ::PotionType potionType,
float timeMod,
::std::string_view const descID,
::MobEffectInstance const & effect )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ getPotion()

MCAPI ::std::shared_ptr<::Potion const > Potion::getPotion ( ::std::string_view potionNameId)
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ initPotions()

MCAPI void Potion::initPotions ( ::BaseGameVersion const & baseGameVersion,
::Experiments const & experiments )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ Awkward()

MCAPI ::std::shared_ptr<::Potion const > const & Potion::Awkward ( )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ FireResistance()

MCAPI ::std::shared_ptr<::Potion const > const & Potion::FireResistance ( )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ Healing()

MCAPI ::std::shared_ptr<::Potion const > const & Potion::Healing ( )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ Poison()

MCAPI ::std::shared_ptr<::Potion const > const & Potion::Poison ( )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ Slowness()

MCAPI ::std::shared_ptr<::Potion const > const & Potion::Slowness ( )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ Swiftness()

MCAPI ::std::shared_ptr<::Potion const > const & Potion::Swiftness ( )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ Water()

MCAPI ::std::shared_ptr<::Potion const > const & Potion::Water ( )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ WaterBreathing()

MCAPI ::std::shared_ptr<::Potion const > const & Potion::WaterBreathing ( )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ Weakness()

MCAPI ::std::shared_ptr<::Potion const > const & Potion::Weakness ( )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ mLastId()

MCAPI int & Potion::mLastId ( )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ mPotionsByName()

MCAPI ::std::unordered_map<::std::string, int > & Potion::mPotionsByName ( )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $ctor() [1/3]

MCAPI void * Potion::$ctor ( ::std::string_view const nameId,
::std::string_view const prefix )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $ctor() [2/3]

MCAPI void * Potion::$ctor ( ::std::string_view const nameId,
::std::string_view const descriptionID,
::MobEffectInstance const & mobEffect,
::PotionVariant var )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $ctor() [3/3]

MCAPI void * Potion::$ctor ( ::std::string_view const nameId,
::std::vector<::std::string > descriptionIDs,
::std::vector<::MobEffectInstance > mobEffects,
::PotionVariant var )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

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