20class MoveToBlockGoal :
public ::Goal {
24 ::ll::TypedStorage<4, 4, int> mGiveUpTicks;
25 ::ll::TypedStorage<4, 4, int> mStayDurationTicks;
26 ::ll::TypedStorage<4, 4, float> mSpeedMod;
27 ::ll::TypedStorage<4, 4, float> mGoalRadiusSq;
28 ::ll::TypedStorage<4, 12, ::BlockPos> mTargetBlockPos;
29 ::ll::TypedStorage<4, 12, ::Vec3> mTargetPositionOffset;
30 ::ll::TypedStorage<4, 4, float> mChanceToStart;
31 ::ll::TypedStorage<4, 4, int> mInterval;
32 ::ll::TypedStorage<4, 4, int> mSearchRange;
33 ::ll::TypedStorage<4, 4, int> mSearchHeight;
34 ::ll::TypedStorage<1, 1, ::TargetSelectionMethod const> mMethod;
35 ::ll::TypedStorage<8, 24, ::std::vector<::ActorDefinitionTrigger>
const> mOnReachTriggers;
36 ::ll::TypedStorage<8, 24, ::std::vector<::ActorDefinitionTrigger>
const> mOnStayCompletedTriggers;
37 ::ll::TypedStorage<8, 24, ::std::vector<::ItemDescriptor>
const> mTargetBlockDescriptors;
38 ::ll::TypedStorage<8, 8, uint64> mCooldownCounter;
39 ::ll::TypedStorage<8, 8, uint64 const> mCooldownTimeoutTime;
40 ::ll::TypedStorage<1, 1, bool> mReachedTarget;
41 ::ll::TypedStorage<4, 4, int> mNextStartTick;
42 ::ll::TypedStorage<4, 4, int> mStayTicks;
43 ::ll::TypedStorage<4, 4, int> mTravelTicks;
44 ::ll::TypedStorage<4, 12, ::BlockPos> mStartPos;
45 ::ll::TypedStorage<8, 8, ::Mob&> mMob;
46 ::ll::TypedStorage<1, 1, bool> mHasSentOnReachEvent;
47 ::ll::TypedStorage<8, 64, ::ActorFilterGroup> mTargetBlockFilter;
52 MoveToBlockGoal& operator=(MoveToBlockGoal
const&);
53 MoveToBlockGoal(MoveToBlockGoal
const&);
59 virtual bool canUse() ;
61 virtual bool canContinueToUse() ;
65 virtual void appendDebugInfo(::std::string& str)
const ;
67 virtual void start() ;
71 virtual ~MoveToBlockGoal() ;
77 MCAPI MoveToBlockGoal(
83 int stayDurationTicks,
85 ::Vec3 targetPositionOffset,
87 ::TargetSelectionMethod targetSelectionMethod,
88 ::std::vector<::ActorDefinitionTrigger> onReachTriggers,
89 ::std::vector<::ActorDefinitionTrigger> onStayCompletedTriggers,
90 ::std::vector<::ItemDescriptor> targetBlocks,
94 MCAPI
void _checkIfStuck();
96 MCAPI
bool _findTargetBlock();
100 MCAPI
void _moveToBlock();
112 int stayDurationTicks,
114 ::Vec3 targetPositionOffset,
116 ::TargetSelectionMethod targetSelectionMethod,
117 ::std::vector<::ActorDefinitionTrigger> onReachTriggers,
118 ::std::vector<::ActorDefinitionTrigger> onStayCompletedTriggers,
119 ::std::vector<::ItemDescriptor> targetBlocks,
133 MCAPI
bool $canUse();
135 MCAPI
bool $canContinueToUse();
139 MCAPI
void $appendDebugInfo(::std::string& str)
const;
151 MCAPI
static void** $vftable();