LeviLamina
Loading...
Searching...
No Matches
BaseMoveToGoal.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
10class BlockPos;
11class BlockSource;
12class Mob;
13class Vec3;
14// clang-format on
15
16class BaseMoveToGoal : public ::Goal {
17public:
18 // member variables
19 // NOLINTBEGIN
20 ::ll::TypedStorage<4, 4, int> mTravelTicks;
21 ::ll::TypedStorage<4, 4, int> mNextStartTick;
22 ::ll::TypedStorage<4, 4, int> mGiveUpTicks;
23 ::ll::TypedStorage<4, 4, int> mStayTicks;
24 ::ll::TypedStorage<4, 4, int> mMaxStayTicks;
25 ::ll::TypedStorage<1, 1, bool> mReachedTarget;
26 ::ll::TypedStorage<4, 4, float> mSpeedMod;
27 ::ll::TypedStorage<4, 4, float> mGoalRadiusSq;
28 ::ll::TypedStorage<8, 8, uint64> mCooldownCounter;
29 ::ll::TypedStorage<8, 8, uint64> mCooldownTimeoutTime;
30 ::ll::TypedStorage<4, 12, ::BlockPos> mStartPos;
31 ::ll::TypedStorage<4, 12, ::Vec3> mBlockPos;
32 ::ll::TypedStorage<4, 12, ::Vec3> mTargetPositionOffset;
33 ::ll::TypedStorage<4, 4, float> mChanceToStart;
34 ::ll::TypedStorage<8, 8, ::Mob&> mMob;
35 ::ll::TypedStorage<4, 4, int> mInterval;
36 // NOLINTEND
37
38public:
39 // virtual functions
40 // NOLINTBEGIN
41 // vIndex: 1
42 virtual bool canUse() /*override*/;
43
44 // vIndex: 2
45 virtual bool canContinueToUse() /*override*/;
46
47 // vIndex: 4
48 virtual void start() /*override*/;
49
50 // vIndex: 5
51 virtual void stop() /*override*/;
52
53 // vIndex: 6
54 virtual void tick() /*override*/;
55
56 // vIndex: 10
57 virtual bool hasReachedTarget() const;
58
59 // vIndex: 11
60 virtual bool isValidTarget(::BlockSource&, ::BlockPos const&) = 0;
61
62 // vIndex: 12
63 virtual int _nextStartTick();
64
65 // vIndex: 13
66 virtual bool _canReach(::BlockPos const& pos);
67
68 // vIndex: 14
69 virtual void _moveToBlock() = 0;
70
71 // vIndex: 15
72 virtual ::Vec3 _getTargetPosition() const;
73
74 // vIndex: 16
75 virtual uint64 _getRepathTime() const;
76
77 // vIndex: 0
78 virtual ~BaseMoveToGoal() /*override*/ = default;
79 // NOLINTEND
80
81public:
82 // member functions
83 // NOLINTBEGIN
84 MCAPI void _checkIfStuck();
85 // NOLINTEND
86
87public:
88 // destructor thunk
89 // NOLINTBEGIN
90
91 // NOLINTEND
92
93public:
94 // virtual function thunks
95 // NOLINTBEGIN
96 MCAPI bool $canUse();
97
98 MCAPI bool $canContinueToUse();
99
100 MCAPI void $start();
101
102 MCFOLD void $stop();
103
104 MCAPI void $tick();
105
106 MCAPI bool $hasReachedTarget() const;
107
108 MCAPI int $_nextStartTick();
109
110 MCAPI bool $_canReach(::BlockPos const& pos);
111
112 MCAPI ::Vec3 $_getTargetPosition() const;
113
114 MCFOLD uint64 $_getRepathTime() const;
115 // NOLINTEND
116
117public:
118 // vftables
119 // NOLINTBEGIN
120 MCAPI static void** $vftable();
121 // NOLINTEND
122};
Definition BaseMoveToGoal.h:16
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition Goal.h:14
Definition Mob.h:47
Definition Vec3.h:10