LeviLamina
Loading...
Searching...
No Matches
PanicGoal.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/shared_types/legacy/LevelSoundEvent.h"
7#include "mc/deps/shared_types/legacy/actor/ActorDamageCause.h"
8#include "mc/world/actor/ai/goal/Goal.h"
9
10// auto generated forward declare list
11// clang-format off
12class Mob;
13class Vec3;
14struct FloatRange;
15struct Tick;
16// clang-format on
17
18class PanicGoal : public ::Goal {
19public:
20 // member variables
21 // NOLINTBEGIN
22 ::ll::TypedStorage<8, 8, ::Mob&> mMob;
23 ::ll::TypedStorage<8, 8, ::Mob*> mHurtByMob;
24 ::ll::TypedStorage<8, 24, ::std::vector<::SharedTypes::Legacy::ActorDamageCause>> mDamageCauses;
25 ::ll::TypedStorage<1, 1, bool> mIgnoreMobDamage;
26 ::ll::TypedStorage<1, 1, bool> mPanicOnAllCauses;
27 ::ll::TypedStorage<1, 1, bool> mForceUse;
28 ::ll::TypedStorage<1, 1, bool> mPreferWater;
29 ::ll::TypedStorage<1, 1, bool> mCanTeleportToOwner;
30 ::ll::TypedStorage<4, 4, float> mSpeedMultipler;
31 ::ll::TypedStorage<4, 12, ::Vec3> mTargetPosition;
32 ::ll::TypedStorage<4, 4, ::SharedTypes::Legacy::LevelSoundEvent> mSoundEvent;
33 ::ll::TypedStorage<4, 8, ::FloatRange> mSoundIntervalRange;
34 ::ll::TypedStorage<8, 8, ::Tick> mNextSoundEventTick;
35 // NOLINTEND
36
37public:
38 // virtual functions
39 // NOLINTBEGIN
40 // vIndex: 1
41 virtual bool canUse() /*override*/;
42
43 // vIndex: 4
44 virtual void start() /*override*/;
45
46 // vIndex: 5
47 virtual void stop() /*override*/;
48
49 // vIndex: 2
50 virtual bool canContinueToUse() /*override*/;
51
52 // vIndex: 6
53 virtual void tick() /*override*/;
54
55 // vIndex: 7
56 virtual void appendDebugInfo(::std::string& str) const /*override*/;
57
58 // vIndex: 0
59 virtual ~PanicGoal() /*override*/ = default;
60 // NOLINTEND
61
62public:
63 // member functions
64 // NOLINTBEGIN
65 MCAPI PanicGoal(
66 ::Mob& mob,
67 float speedMultiplier,
68 bool ignoreMobDamage,
69 ::SharedTypes::Legacy::LevelSoundEvent sound,
70 ::FloatRange soundIntervalRange,
71 bool forceUse,
72 bool preferWater,
73 ::std::vector<::SharedTypes::Legacy::ActorDamageCause> damageCauses
74 );
75
76 MCAPI ::std::optional<::Vec3> _findWaterPos(int xzDist, int yDist) const;
77
78 MCAPI ::std::optional<::Vec3> _tryGeneratePathEnd() const;
79 // NOLINTEND
80
81public:
82 // constructor thunks
83 // NOLINTBEGIN
84 MCAPI void* $ctor(
85 ::Mob& mob,
86 float speedMultiplier,
87 bool ignoreMobDamage,
88 ::SharedTypes::Legacy::LevelSoundEvent sound,
89 ::FloatRange soundIntervalRange,
90 bool forceUse,
91 bool preferWater,
92 ::std::vector<::SharedTypes::Legacy::ActorDamageCause> damageCauses
93 );
94 // NOLINTEND
95
96public:
97 // destructor thunk
98 // NOLINTBEGIN
99
100 // NOLINTEND
101
102public:
103 // virtual function thunks
104 // NOLINTBEGIN
105 MCAPI bool $canUse();
106
107 MCAPI void $start();
108
109 MCAPI void $stop();
110
111 MCFOLD bool $canContinueToUse();
112
113 MCAPI void $tick();
114
115 MCAPI void $appendDebugInfo(::std::string& str) const;
116 // NOLINTEND
117
118public:
119 // vftables
120 // NOLINTBEGIN
121 MCAPI static void** $vftable();
122 // NOLINTEND
123};
Definition Goal.h:14
Definition Mob.h:47
Definition PanicGoal.h:18
Definition Vec3.h:10
Definition FloatRange.h:11
Definition Tick.h:5