35 using AttributeBuffPair = ::std::pair<::Attribute const*, ::std::shared_ptr<::AttributeBuff>>;
37 using AttributeModPair = ::std::pair<::Attribute const*, ::std::shared_ptr<::AttributeModifier>>;
43 ::ll::TypedStorage<4, 4, int> mPaddingDuration;
44 ::ll::TypedStorage<4, 4, float> mFactorStart;
45 ::ll::TypedStorage<4, 4, float> mFactorTarget;
46 ::ll::TypedStorage<4, 4, float> mFactorCurrent;
49 ::ll::TypedStorage<4, 4, int> mTicksActive;
50 ::ll::TypedStorage<4, 4, float> mFactorPreviousFrame;
51 ::ll::TypedStorage<1, 1, bool> mHadEffectLastTick;
52 ::ll::TypedStorage<1, 1, bool> mHadApplied;
64 MCAPI ::std::unique_ptr<::CompoundTag> save()
const;
72 MCAPI static ::MobEffect::FactorCalculationData load(
::CompoundTag const* tag);
85 ::ll::TypedStorage<4, 4, uint const> mId;
86 ::ll::TypedStorage<1, 1, bool> mIsHarmful;
87 ::ll::TypedStorage<4, 16, ::mce::Color> mColor;
88 ::ll::TypedStorage<8, 48, ::HashedString> mParticleEffectId;
89 ::ll::TypedStorage<8, 48, ::HashedString> mParticleEffectAmbientId;
90 ::ll::TypedStorage<8, 32, ::std::string> mDescriptionId;
91 ::ll::TypedStorage<4, 4, int> mIcon;
92 ::ll::TypedStorage<4, 4, float> mDurationModifier;
93 ::ll::TypedStorage<1, 1, bool> mIsDisabled;
94 ::ll::TypedStorage<8, 32, ::std::string> mResourceName;
95 ::ll::TypedStorage<8, 32, ::std::string> mIconName;
96 ::ll::TypedStorage<1, 1, bool> mEffectVisible;
97 ::ll::TypedStorage<4, 8, ::std::optional<::SharedTypes::Legacy::LevelSoundEvent>> mOnApplySound;
98 ::ll::TypedStorage<8, 48, ::HashedString> mComponentName;
99 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::Amplifier>> mValueAmplifier;
100 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::Amplifier>> mDurationAmplifier;
101 ::ll::TypedStorage<8, 24, ::std::vector<::std::pair<::Attribute const*, ::std::shared_ptr<::AttributeBuff>>>>
103 ::ll::TypedStorage<8, 24, ::std::vector<::std::pair<::Attribute const*, ::std::shared_ptr<::AttributeModifier>>>>
105 ::ll::TypedStorage<8, 96, ::MobEffect::FactorCalculationData> mFactorCalculationData;
121 virtual void onEffectExpired(
::Actor&)
const;
124 virtual void onActorDied(
::Actor&,
int)
const;
131 applyInstantaneousEffect(
::Actor* source,
::Actor* owner,
::Actor* target,
int amplification,
float scale)
const;
134 virtual bool isInstantaneous()
const;
137 virtual float getAttributeModifierValue(
int amplifier,
::AttributeModifier const& modifier)
const;
145 ::std::string
const& resourceName,
146 ::std::string
const& locName,
150 ::std::string
const& iconName,
154 MCAPI ::InstantaneousAttributeBuff
155 _createInstantBuff(
::AttributeBuff const& baseBuff,
int amplification,
float scale)
const;
157 MCAPI ::TemporalAttributeBuff
160 MCAPI
void _setParticleEffectIds(
char const* particleEffectId,
char const* particleEffectAmbientId);
162 MCAPI
void addAttributeBuff(
::Attribute const& attribute, ::std::shared_ptr<::AttributeBuff> buff);
164 MCAPI
void addAttributeModifier(
::Attribute const& attribute, ::std::shared_ptr<::AttributeModifier> modifier);
170 MCAPI
void setDurationAmplifier(::std::shared_ptr<::Amplifier> amplifier);
174 MCAPI ::MobEffect& setOnApplySound(::SharedTypes::Legacy::LevelSoundEvent onApplySound);
176 MCAPI
void setValueAmplifier(::std::shared_ptr<::Amplifier> amplifier);
189 MCAPI static ::MobEffect* getByName(::std::string
const& name);
191 MCAPI static ::MobEffect::FactorCalculationData getDarknessEffectFactorCalculationData();
199 MCAPI static ::MobEffect*& ABSORPTION();
201 MCAPI static ::MobEffect*& BAD_OMEN();
203 MCAPI static ::MobEffect*& BLINDNESS();
205 MCAPI static ::MobEffect*& CONDUIT_POWER();
207 MCAPI static ::MobEffect*& CONFUSION();
209 MCAPI static ::MobEffect*& DAMAGE_BOOST();
211 MCAPI static ::MobEffect*& DAMAGE_RESISTANCE();
213 MCAPI static ::MobEffect*& DARKNESS();
215 MCAPI static ::mce::Color
const& DEFAULT_COLOR();
217 MCAPI static ::MobEffect*& DIG_SLOWDOWN();
219 MCAPI static ::MobEffect*& DIG_SPEED();
221 MCAPI static ::MobEffect*& EMPTY_EFFECT();
223 MCAPI static ::MobEffect*& FATAL_POISON();
225 MCAPI static ::MobEffect*& FIRE_RESISTANCE();
227 MCAPI static ::MobEffect*& HARM();
229 MCAPI static ::MobEffect*& HEAL();
231 MCAPI static ::MobEffect*& HEALTH_BOOST();
233 MCAPI static ::MobEffect*& HERO_OF_THE_VILLAGE();
235 MCAPI static ::MobEffect*& HUNGER();
237 MCAPI static ::MobEffect*& INFESTED();
239 MCAPI static ::MobEffect*& INVISIBILITY();
241 MCAPI static ::MobEffect*& JUMP();
243 MCAPI static ::MobEffect*& LEVITATION();
245 MCAPI static ::MobEffect*& MOVEMENT_SLOWDOWN();
247 MCAPI static ::MobEffect*& MOVEMENT_SPEED();
249 MCAPI static ::MobEffect*& NIGHT_VISION();
251 MCAPI static ::MobEffect*& OOZING();
253 MCAPI static ::MobEffect*& POISON();
255 MCAPI static ::MobEffect*& RAID_OMEN();
257 MCAPI static ::MobEffect*& REGENERATION();
259 MCAPI static ::MobEffect*& SATURATION();
261 MCAPI static ::MobEffect*& SLOW_FALLING();
263 MCAPI static ::MobEffect*& TRIAL_OMEN();
265 MCAPI static ::MobEffect*& WATER_BREATHING();
267 MCAPI static ::MobEffect*& WEAKNESS();
269 MCAPI static ::MobEffect*& WEAVING();
271 MCAPI static ::MobEffect*& WIND_CHARGED();
273 MCAPI static ::MobEffect*& WITHER();
275 MCAPI static ::std::add_lvalue_reference_t<::std::unique_ptr<::MobEffect>[]> mMobEffects();
283 ::std::string
const& resourceName,
284 ::std::string
const& locName,
288 ::std::string
const& iconName,
306 MCFOLD
void $onEffectExpired(
::Actor&)
const;
308 MCFOLD
void $onActorDied(
::Actor&,
int)
const;
313 $applyInstantaneousEffect(
::Actor* source,
::Actor* owner,
::Actor* target,
int amplification,
float scale)
const;
315 MCFOLD
bool $isInstantaneous()
const;
317 MCAPI
float $getAttributeModifierValue(
int amplifier,
::AttributeModifier const& modifier)
const;
323 MCAPI
static void** $vftable();