Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
MobEffectInstance Class Reference

Public Member Functions

MobEffectInstance & operator= (MobEffectInstance const &)
 MobEffectInstance (MobEffectInstance const &)
MCAPI MobEffectInstance (uint id, ::EffectDuration duration)
MCAPI::std::string getDisplayName () const
MCAPI::MobEffectInstance & operator= (::MobEffectInstance &&)
MCAPI ::std::unique_ptr<::CompoundTag > save () const
MCAPI bool tick ()
MCAPI void update (::MobEffectInstance const &takeOver)
MCAPI void updateEffects (::Actor &mob) const
MCAPI void * $ctor (uint id, ::EffectDuration duration)
MCAPI void $dtor ()

Static Public Member Functions

static MCAPI ::mce::Color getAverageColorValue (::std::vector<::MobEffectInstance > const &effects)
static MCAPI ::MobEffectInstance load (::CompoundTag const &tag)
static MCAPI ::MobEffectInstance const & NO_EFFECT ()
static MCAPI float & splashDurationMultiplier ()

Public Attributes

::ll::TypedStorage< 4, 4, uint > mId
::ll::TypedStorage< 4, 4, ::EffectDuration > mDuration
::ll::TypedStorage< 4, 8, ::std::optional<::EffectDuration > > mDurationEasy
::ll::TypedStorage< 4, 8, ::std::optional<::EffectDuration > > mDurationNormal
::ll::TypedStorage< 4, 8, ::std::optional<::EffectDuration > > mDurationHard
::ll::TypedStorage< 4, 4, int > mAmplifier
::ll::TypedStorage< 8, 24, ::std::vector<::MobEffectInstance > > mEffects
::ll::TypedStorage< 1, 1, bool > mDisplayOnScreenTextureAnimation
::ll::TypedStorage< 1, 1, bool > mIsCounterPausedThisTick
::ll::TypedStorage< 1, 1, bool > mAmbient
::ll::TypedStorage< 1, 1, bool > mEffectVisible
::ll::TypedStorage< 1, 1, bool > mIsLeveled
::ll::TypedStorage< 8, 96, ::MobEffect::FactorCalculationData > mFactorCalculationData

Member Function Documentation

◆ tick()

MCAPI bool MobEffectInstance::tick ( )
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.

◆ update()

MCAPI void MobEffectInstance::update ( ::MobEffectInstance const & takeOver)
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.

◆ NO_EFFECT()

MCAPI ::MobEffectInstance const & MobEffectInstance::NO_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.

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