LeviLamina
Loading...
Searching...
No Matches
StalkAndPounceOnTargetGoal.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/actor/ai/goal/Goal.h"
7
8// auto generated forward declare list
9// clang-format off
11class BlockPos;
12class Mob;
13class Vec3;
14struct Tick;
15// clang-format on
16
18public:
19 // StalkAndPounceOnTargetGoal inner types define
20 enum class StalkAndPounceState : uchar {
21 Stalking = 0,
22 Interested = 1,
23 Pouncing = 2,
24 Stuck = 3,
25 Done = 4,
26 };
27
28public:
29 // member variables
30 // NOLINTBEGIN
31 ::ll::TypedStorage<4, 4, float> mStalkSpeed;
32 ::ll::TypedStorage<4, 4, float> mStalkingMaxDistanceSqr;
33 ::ll::TypedStorage<4, 4, float> mLeapHeight;
34 ::ll::TypedStorage<4, 4, float> mLeapDistance;
35 ::ll::TypedStorage<4, 4, float> mMaxPounceDistanceSqr;
36 ::ll::TypedStorage<4, 4, float> mStrikeDistanceSqr;
37 ::ll::TypedStorage<4, 4, int> mInterestedTicks;
38 ::ll::TypedStorage<4, 4, int> mStuckTicks;
39 ::ll::TypedStorage<8, 8, ::Tick> mEndTimestamp;
40 ::ll::TypedStorage<8, 64, ::ActorFilterGroup> mStuckBlockList;
41 ::ll::TypedStorage<1, 1, ::StalkAndPounceOnTargetGoal::StalkAndPounceState> mState;
42 ::ll::TypedStorage<8, 8, ::Mob&> mMob;
43 ::ll::TypedStorage<1, 1, bool> mSetPersistent;
44 // NOLINTEND
45
46public:
47 // virtual functions
48 // NOLINTBEGIN
49 // vIndex: 1
50 virtual bool canUse() /*override*/;
51
52 // vIndex: 2
53 virtual bool canContinueToUse() /*override*/;
54
55 // vIndex: 4
56 virtual void start() /*override*/;
57
58 // vIndex: 5
59 virtual void stop() /*override*/;
60
61 // vIndex: 6
62 virtual void tick() /*override*/;
63
64 // vIndex: 3
65 virtual bool canBeInterrupted() /*override*/;
66
67 // vIndex: 7
68 virtual void appendDebugInfo(::std::string& str) const /*override*/;
69
70 // vIndex: 0
71 virtual ~StalkAndPounceOnTargetGoal() /*override*/ = default;
72 // NOLINTEND
73
74public:
75 // member functions
76 // NOLINTBEGIN
77 MCAPI void _attemptToStrike(::Vec3 const& mobPos, ::Vec3 const& targetPos);
78
79 MCAPI bool _isPouncePathClear(::Vec3 const& mobPos, ::Vec3 const& targetPos) const;
80
81 MCAPI bool _isStuckBlock(::BlockPos blockPos) const;
82
83 MCAPI void _pounce(::Vec3 const& mobPos, ::Vec3 const& targetPos) const;
84
85 MCAPI void _preparePounce(::Vec3 const& mobPos, ::Vec3 const& targetPos);
86
87 MCAPI void _stuck();
88 // NOLINTEND
89
90public:
91 // destructor thunk
92 // NOLINTBEGIN
93
94 // NOLINTEND
95
96public:
97 // virtual function thunks
98 // NOLINTBEGIN
99 MCAPI bool $canUse();
100
101 MCAPI bool $canContinueToUse();
102
103 MCAPI void $start();
104
105 MCAPI void $stop();
106
107 MCAPI void $tick();
108
109 MCAPI bool $canBeInterrupted();
110
111 MCAPI void $appendDebugInfo(::std::string& str) const;
112 // NOLINTEND
113
114public:
115 // vftables
116 // NOLINTBEGIN
117 MCAPI static void** $vftable();
118 // NOLINTEND
119};
Definition ActorFilterGroup.h:16
Definition BlockPos.h:18
Definition Goal.h:14
Definition Mob.h:47
Definition StalkAndPounceOnTargetGoal.h:17
Definition Vec3.h:10
Definition Tick.h:5