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/core/math/Vec3.h"
7#include "mc/deps/shared_types/legacy/LevelSoundEvent.h"
8#include "mc/deps/shared_types/legacy/actor/ActorDamageCause.h"
9#include "mc/util/FloatRange.h"
10#include "mc/world/actor/ai/goal/Goal.h"
11#include "mc/world/level/Tick.h"
12
13// auto generated forward declare list
14// clang-format off
15class Mob;
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 // prevent constructor by default
39 PanicGoal& operator=(PanicGoal const&);
40 PanicGoal(PanicGoal const&);
41 PanicGoal();
42
43public:
44 // virtual functions
45 // NOLINTBEGIN
46 // vIndex: 1
47 virtual bool canUse() /*override*/;
48
49 // vIndex: 4
50 virtual void start() /*override*/;
51
52 // vIndex: 5
53 virtual void stop() /*override*/;
54
55 // vIndex: 2
56 virtual bool canContinueToUse() /*override*/;
57
58 // vIndex: 6
59 virtual void tick() /*override*/;
60
61 // vIndex: 7
62 virtual void appendDebugInfo(::std::string& str) const /*override*/;
63
64 // vIndex: 0
65 virtual ~PanicGoal() /*override*/ = default;
66 // NOLINTEND
67
68public:
69 // member functions
70 // NOLINTBEGIN
71 MCNAPI PanicGoal(
72 ::Mob& mob,
73 float speedMultiplier,
74 bool ignoreMobDamage,
75 ::SharedTypes::Legacy::LevelSoundEvent sound,
76 ::FloatRange soundIntervalRange,
77 bool forceUse,
78 bool preferWater,
79 ::std::vector<::SharedTypes::Legacy::ActorDamageCause> damageCauses
80 );
81
82 MCNAPI ::std::optional<::Vec3> _findWaterPos(int xzDist, int yDist) const;
83
84 MCNAPI ::std::optional<::Vec3> _tryGeneratePathEnd() const;
85 // NOLINTEND
86
87public:
88 // constructor thunks
89 // NOLINTBEGIN
90 MCNAPI void* $ctor(
91 ::Mob& mob,
92 float speedMultiplier,
93 bool ignoreMobDamage,
94 ::SharedTypes::Legacy::LevelSoundEvent sound,
95 ::FloatRange soundIntervalRange,
96 bool forceUse,
97 bool preferWater,
98 ::std::vector<::SharedTypes::Legacy::ActorDamageCause> damageCauses
99 );
100 // NOLINTEND
101
102public:
103 // virtual function thunks
104 // NOLINTBEGIN
105 MCNAPI bool $canUse();
106
107 MCNAPI void $start();
108
109 MCNAPI void $stop();
110
111 MCNAPI bool $canContinueToUse();
112
113 MCNAPI void $tick();
114
115 MCNAPI void $appendDebugInfo(::std::string& str) const;
116 // NOLINTEND
117
118public:
119 // vftables
120 // NOLINTBEGIN
121 MCNAPI static void** $vftable();
122 // NOLINTEND
123};
Definition Goal.h:14
Definition Mob.h:47
Definition PanicGoal.h:18
MCAPI PanicGoal(::Mob &mob, float speedMultiplier, bool ignoreMobDamage, ::SharedTypes::Legacy::LevelSoundEvent sound, ::FloatRange soundIntervalRange, bool forceUse, bool preferWater, ::std::vector<::SharedTypes::Legacy::ActorDamageCause > damageCauses)
MCAPI void $stop()
MCAPI void $appendDebugInfo(::std::string &str) const
MCAPI void $start()
MCAPI ::std::optional<::Vec3 > _tryGeneratePathEnd() const
static MCAPI void ** $vftable()
MCAPI bool $canUse()
MCAPI bool $canContinueToUse()
MCAPI ::std::optional<::Vec3 > _findWaterPos(int xzDist, int yDist) const
MCAPI void $tick()
MCAPI void * $ctor(::Mob &mob, float speedMultiplier, bool ignoreMobDamage, ::SharedTypes::Legacy::LevelSoundEvent sound, ::FloatRange soundIntervalRange, bool forceUse, bool preferWater, ::std::vector<::SharedTypes::Legacy::ActorDamageCause > damageCauses)
Definition FloatRange.h:11