Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
AttackDamageMobEffect Class Reference
Inheritance diagram for AttackDamageMobEffect:

Public Types

using AttributeBuffPair = ::std::pair<::Attribute const*, ::std::shared_ptr<::AttributeBuff>>
using AttributeModPair = ::std::pair<::Attribute const*, ::std::shared_ptr<::AttributeModifier>>

Public Member Functions

virtual float getAttributeModifierValue (int amplifier, ::AttributeModifier const &modifier) const
MCAPI float $getAttributeModifierValue (int amplifier, ::AttributeModifier const &modifier) const
virtual void applyEffects (::Actor &target, ::EffectDuration durationTicks, int amplification) const
virtual void removeEffects (::BaseAttributeMap &attributeMapToRemoveFrom) const
virtual void onEffectExpired (::Actor &target) const
virtual void onActorDied (::Actor &target, int amplifier) const
virtual void onActorHurt (::Actor &target, int amplifier, ::ActorDamageSource const &source, float damage) const
virtual void applyInstantaneousEffect (::Actor *source, ::Actor *owner, ::Actor *target, int amplification, float scale) const
virtual bool isInstantaneous () const
MCAPI::TemporalAttributeBuff _createTemporalBuff (::AttributeBuff const &baseBuff, ::EffectDuration duration, int amplification) const
MCAPI void _setParticleEffectIds (char const *particleEffectId, char const *particleEffectAmbientId)
MCAPI void addAttributeBuff (::Attribute const &attribute, ::std::shared_ptr<::AttributeBuff > buff)
MCAPI void addAttributeModifier (::Attribute const &attribute, ::std::shared_ptr<::AttributeModifier > modifier)
MCAPI void applyModsAndBuffs (::BaseAttributeMap &attributeMapToRemoveFrom, ::EffectDuration durationTicks, int amplification) const
MCAPI void updateModsAndBuffs (::BaseAttributeMap &attributeMapToRemoveFrom, ::EffectDuration durationTicks, int amplification) const
MCAPI void * $ctor (uint id, ::std::string const &resourceName, ::std::string const &locName, bool isHarmful, int color, int icon, ::std::string const &iconName, bool drawParticles)
MCAPI void $applyEffects (::Actor &target, ::EffectDuration durationTicks, int amplification) const
MCAPI void $removeEffects (::BaseAttributeMap &attributeMapToRemoveFrom) const
MCAPI void $onEffectExpired (::Actor &target) const
MCAPI void $onActorDied (::Actor &target, int amplifier) const
MCAPI void $onActorHurt (::Actor &target, int amplifier, ::ActorDamageSource const &source, float damage) const
MCAPI void $applyInstantaneousEffect (::Actor *source, ::Actor *owner, ::Actor *target, int amplification, float scale) const
MCAPI bool $isInstantaneous () const

Static Public Member Functions

static MCAPI ::MobEffect const * getByName (::std::string const &name)
static MCAPI ::std::string getNameById (uint effectId)
static MCAPI void initEffects (::BaseGameVersion const &baseGameVersion, ::Experiments const &experiments)
static MCAPI ::mce::Color const & DEFAULT_COLOR ()
static MCAPI ::Bedrock::DenseEnumMap<::MobEffectIds, ::std::unique_ptr<::MobEffect >, 39 > & mMobEffects ()

Public Attributes

::ll::TypedStorage< 4, 4, uint const > mId
::ll::TypedStorage< 1, 1, bool > mIsHarmful
::ll::TypedStorage< 4, 16, ::mce::Color > mColor
::ll::TypedStorage< 8, 48, ::HashedString > mParticleEffectId
::ll::TypedStorage< 8, 48, ::HashedString > mParticleEffectAmbientId
::ll::TypedStorage< 8, 32, ::std::string > mDescriptionId
::ll::TypedStorage< 4, 4, int > mIcon
::ll::TypedStorage< 4, 4, float > mDurationModifier
::ll::TypedStorage< 1, 1, bool > mIsDisabled
::ll::TypedStorage< 8, 32, ::std::string > mResourceName
::ll::TypedStorage< 8, 32, ::std::string > mIconName
::ll::TypedStorage< 1, 1, bool > mEffectVisible
::ll::TypedStorage< 4, 8, ::std::optional<::SharedTypes::Legacy::LevelSoundEvent > > mOnApplySound
::ll::TypedStorage< 8, 48, ::HashedString > mComponentName
::ll::TypedStorage< 8, 16, ::std::shared_ptr<::Amplifier > > mValueAmplifier
::ll::TypedStorage< 8, 16, ::std::shared_ptr<::Amplifier > > mDurationAmplifier
::ll::TypedStorage< 8, 24, ::std::vector<::std::pair<::Attribute const *, ::std::shared_ptr<::AttributeBuff > > > > mAttributeBuffs
::ll::TypedStorage< 8, 24, ::std::vector<::std::pair<::Attribute const *, ::std::shared_ptr<::AttributeModifier > > > > mAttributeModifiers
::ll::TypedStorage< 8, 96, ::MobEffect::FactorCalculationData > mFactorCalculationData

Member Function Documentation

◆ getAttributeModifierValue()

virtual float AttackDamageMobEffect::getAttributeModifierValue ( int amplifier,
::AttributeModifier const & modifier ) const
virtual

Reimplemented from MobEffect.

◆ $getAttributeModifierValue()

MCAPI float AttackDamageMobEffect::$getAttributeModifierValue ( int amplifier,
::AttributeModifier const & modifier ) 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.

◆ _createTemporalBuff()

MCAPI::TemporalAttributeBuff MobEffect::_createTemporalBuff ( ::AttributeBuff const & baseBuff,
::EffectDuration duration,
int amplification ) const
inherited
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.

◆ _setParticleEffectIds()

MCAPI void MobEffect::_setParticleEffectIds ( char const * particleEffectId,
char const * particleEffectAmbientId )
inherited
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.

◆ addAttributeBuff()

MCAPI void MobEffect::addAttributeBuff ( ::Attribute const & attribute,
::std::shared_ptr<::AttributeBuff > buff )
inherited
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.

◆ addAttributeModifier()

MCAPI void MobEffect::addAttributeModifier ( ::Attribute const & attribute,
::std::shared_ptr<::AttributeModifier > modifier )
inherited
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.

◆ applyModsAndBuffs()

MCAPI void MobEffect::applyModsAndBuffs ( ::BaseAttributeMap & attributeMapToRemoveFrom,
::EffectDuration durationTicks,
int amplification ) const
inherited
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.

◆ updateModsAndBuffs()

MCAPI void MobEffect::updateModsAndBuffs ( ::BaseAttributeMap & attributeMapToRemoveFrom,
::EffectDuration durationTicks,
int amplification ) const
inherited
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.

◆ initEffects()

MCAPI void MobEffect::initEffects ( ::BaseGameVersion const & baseGameVersion,
::Experiments const & experiments )
staticinherited
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.

◆ DEFAULT_COLOR()

MCAPI ::mce::Color const & MobEffect::DEFAULT_COLOR ( )
staticinherited
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()

MCAPI void * MobEffect::$ctor ( uint id,
::std::string const & resourceName,
::std::string const & locName,
bool isHarmful,
int color,
int icon,
::std::string const & iconName,
bool drawParticles )
inherited
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.

◆ $applyEffects()

MCAPI void MobEffect::$applyEffects ( ::Actor & target,
::EffectDuration durationTicks,
int amplification ) const
inherited
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.

◆ $removeEffects()

MCAPI void MobEffect::$removeEffects ( ::BaseAttributeMap & attributeMapToRemoveFrom) const
inherited
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.

◆ $onEffectExpired()

MCAPI void MobEffect::$onEffectExpired ( ::Actor & target) const
inherited
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.

◆ $onActorDied()

MCAPI void MobEffect::$onActorDied ( ::Actor & target,
int amplifier ) const
inherited
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.

◆ $onActorHurt()

MCAPI void MobEffect::$onActorHurt ( ::Actor & target,
int amplifier,
::ActorDamageSource const & source,
float damage ) const
inherited
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.

◆ $isInstantaneous()

MCAPI bool MobEffect::$isInstantaneous ( ) const
inherited
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: