16class BaseMoveToGoal :
public ::Goal {
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;
40 BaseMoveToGoal& operator=(BaseMoveToGoal
const&);
41 BaseMoveToGoal(BaseMoveToGoal
const&);
47 virtual bool canUse() ;
49 virtual bool canContinueToUse() ;
51 virtual void start() ;
57 virtual bool hasReachedTarget()
const;
61 virtual int _nextStartTick();
65 virtual void _moveToBlock() = 0;
67 virtual ::Vec3 _getTargetPosition()
const;
69 virtual uint64 _getRepathTime()
const;
71 virtual ~BaseMoveToGoal() =
default;
77 MCAPI
void _checkIfStuck();
85 MCAPI
bool $canContinueToUse();
93 MCAPI
bool $hasReachedTarget()
const;
95 MCAPI
int $_nextStartTick();
99 MCAPI ::Vec3 $_getTargetPosition()
const;
101 MCFOLD uint64 $_getRepathTime()
const;
109 MCAPI
static void** $vftable();