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 CompoundTag;
12namespace mce { class Color; }
13// clang-format on
14
16public:
17 // member variables
18 // NOLINTBEGIN
19 ::ll::TypedStorage<4, 4, uint> mId;
20 ::ll::TypedStorage<4, 4, ::EffectDuration> mDuration;
21 ::ll::TypedStorage<4, 8, ::std::optional<::EffectDuration>> mDurationEasy;
22 ::ll::TypedStorage<4, 8, ::std::optional<::EffectDuration>> mDurationNormal;
23 ::ll::TypedStorage<4, 8, ::std::optional<::EffectDuration>> mDurationHard;
24 ::ll::TypedStorage<4, 4, int> mAmplifier;
25 ::ll::TypedStorage<1, 1, bool> mDisplayOnScreenTextureAnimation;
26 ::ll::TypedStorage<1, 1, bool> mIsCounterPausedThisTick;
27 ::ll::TypedStorage<1, 1, bool> mAmbient;
28 ::ll::TypedStorage<1, 1, bool> mEffectVisible;
29 ::ll::TypedStorage<8, 96, ::MobEffect::FactorCalculationData> mFactorCalculationData;
30 // NOLINTEND
31
32public:
33 // prevent constructor by default
35
36public:
37 // member functions
38 // NOLINTBEGIN
40
42
43 MCAPI explicit MobEffectInstance(uint id);
44
45 MCAPI ::std::string getDisplayName() const;
46
47 MCAPI ::MobEffectInstance& operator=(::MobEffectInstance&&);
48
49 MCAPI ::MobEffectInstance& operator=(::MobEffectInstance const&);
50
51 MCAPI ::std::unique_ptr<::CompoundTag> save() const;
52
53 MCAPI void update(::MobEffectInstance const& takeOver);
54
55 MCAPI ~MobEffectInstance();
56 // NOLINTEND
57
58public:
59 // static functions
60 // NOLINTBEGIN
61 MCAPI static ::mce::Color getAverageColorValue(::std::vector<::MobEffectInstance> const& effects);
62
63 MCAPI static ::MobEffectInstance load(::CompoundTag const& tag);
64 // NOLINTEND
65
66public:
67 // static variables
68 // NOLINTBEGIN
69 MCAPI static ::MobEffectInstance const& NO_EFFECT();
70
71 MCAPI static float& splashDurationMultiplier();
72 // NOLINTEND
73
74public:
75 // constructor thunks
76 // NOLINTBEGIN
77 MCAPI void* $ctor(::MobEffectInstance&&);
78
79 MCAPI void* $ctor(::MobEffectInstance const&);
80
81 MCAPI void* $ctor(uint id);
82 // NOLINTEND
83
84public:
85 // destructor thunk
86 // NOLINTBEGIN
87 MCAPI void $dtor();
88 // NOLINTEND
89};
Definition CompoundTag.h:13
Definition MobEffectInstance.h:15