LeviLamina
Loading...
Searching...
No Matches
MobEffectInstance.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/effect/EffectDuration.h"
7#include "mc/world/effect/MobEffect.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
12class CompoundTag;
13namespace mce { class Color; }
14// clang-format on
15
16class MobEffectInstance {
17public:
18 // member variables
19 // NOLINTBEGIN
20 ::ll::TypedStorage<4, 4, uint> mId;
21 ::ll::TypedStorage<4, 4, ::EffectDuration> mDuration;
22 ::ll::TypedStorage<4, 8, ::std::optional<::EffectDuration>> mDurationEasy;
23 ::ll::TypedStorage<4, 8, ::std::optional<::EffectDuration>> mDurationNormal;
24 ::ll::TypedStorage<4, 8, ::std::optional<::EffectDuration>> mDurationHard;
25 ::ll::TypedStorage<4, 4, int> mAmplifier;
26 ::ll::TypedStorage<1, 1, bool> mDisplayOnScreenTextureAnimation;
27 ::ll::TypedStorage<1, 1, bool> mIsCounterPausedThisTick;
28 ::ll::TypedStorage<1, 1, bool> mAmbient;
29 ::ll::TypedStorage<1, 1, bool> mEffectVisible;
30 ::ll::TypedStorage<1, 1, bool> mIsLeveled;
31 ::ll::TypedStorage<8, 96, ::MobEffect::FactorCalculationData> mFactorCalculationData;
32 // NOLINTEND
33
34public:
35 // prevent constructor by default
36 MobEffectInstance();
37
38public:
39 // member functions
40 // NOLINTBEGIN
41 MCAPI MobEffectInstance(uint id, ::EffectDuration duration);
42
43 MCAPI ::std::string getDisplayName() const;
44
45 MCAPI ::std::unique_ptr<::CompoundTag> save() const;
46
47 MCAPI void updateEffects(::Actor& mob) const;
48 // NOLINTEND
49
50public:
51 // static functions
52 // NOLINTBEGIN
53 MCAPI static ::mce::Color getAverageColorValue(::std::vector<::MobEffectInstance> const& effects);
54
55 MCAPI static ::MobEffectInstance load(::CompoundTag const& tag);
56 // NOLINTEND
57
58public:
59 // static variables
60 // NOLINTBEGIN
61 MCAPI static ::MobEffectInstance const& NO_EFFECT();
62
63 MCAPI static float& splashDurationMultiplier();
64 // NOLINTEND
65
66public:
67 // constructor thunks
68 // NOLINTBEGIN
69 MCAPI void* $ctor(uint id, ::EffectDuration duration);
70 // NOLINTEND
71};
Definition Actor.h:113
Definition CompoundTag.h:18
Definition Color.h:13
Definition EffectDuration.h:5