24 enum class CanUseOutcome :
int {
28 CouldNotFindTargetPos = 3,
29 CouldNotCreatePath = 4,
30 CouldNotPathAllTheWay = 5,
33 enum class State :
int {
43 ::ll::TypedStorage<4, 4, float> mSpeedMod;
44 ::ll::TypedStorage<4, 4, float> mGoalRadius;
45 ::ll::TypedStorage<4, 4, float> mDigSpawnItemPosOffset;
46 ::ll::TypedStorage<4, 4, float> mDigSpawnItemAfterSeconds;
47 ::ll::TypedStorage<4, 4, float> mTargetDigPositionOffset;
48 ::ll::TypedStorage<4, 4, int> mFindWantedPosRetries;
49 ::ll::TypedStorage<4, 4, int> mSearchRangeXZ;
50 ::ll::TypedStorage<4, 4, int> mSearchRangeY;
51 ::ll::TypedStorage<8, 104, ::ActorDefinitionTrigger> mOnSearchingStartEvent;
52 ::ll::TypedStorage<8, 104, ::ActorDefinitionTrigger> mOnFailDuringSearchingEvent;
53 ::ll::TypedStorage<8, 104, ::ActorDefinitionTrigger> mOnDiggingStartEvent;
54 ::ll::TypedStorage<8, 104, ::ActorDefinitionTrigger> mOnItemFoundEvent;
55 ::ll::TypedStorage<8, 104, ::ActorDefinitionTrigger> mOnFailDuringDiggingEvent;
56 ::ll::TypedStorage<8, 104, ::ActorDefinitionTrigger> mOnSuccessEvent;
57 ::ll::TypedStorage<8, 24, ::std::vector<::BlockDescriptor>> mTargetBlocks;
58 ::ll::TypedStorage<8, 32, ::std::string> mItemTable;
59 ::ll::TypedStorage<8, 8, ::Mob&> mMob;
60 ::ll::TypedStorage<4, 4, ::RandomSearchAndDigGoal::State> mState;
61 ::ll::TypedStorage<4, 4, float> mGoalRadiusSqr;
62 ::ll::TypedStorage<1, 1, bool> mItemFound;
63 ::ll::TypedStorage<4, 12, ::BlockPos> mTargetPos;
64 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::Path>> mPath;
65 ::ll::TypedStorage<2, 2, ushort> mCooldownDurationTicks;
66 ::ll::TypedStorage<2, 2, ushort> mDiggingDurationTicks;
67 ::ll::TypedStorage<2, 2, ushort> mSpawnItemAfterTicks;
68 ::ll::TypedStorage<8, 8, ::Tick> mCooldownEndTick;
69 ::ll::TypedStorage<8, 8, ::Tick> mItemFoundEndTick;
70 ::ll::TypedStorage<8, 8, ::Tick> mDiggingEndTick;
71 ::ll::TypedStorage<8, 24, ::std::optional<::ExpiringTick>> mDiggingParticleCooldown;
76 RandomSearchAndDigGoal& operator=(RandomSearchAndDigGoal
const&);
77 RandomSearchAndDigGoal(RandomSearchAndDigGoal
const&);
78 RandomSearchAndDigGoal();
83 virtual bool canUse() ;
85 virtual bool canContinueToUse() ;
87 virtual void start() ;
93 virtual void appendDebugInfo(::std::string& str)
const ;
99 MCAPI RandomSearchAndDigGoal(
::Mob& mob, ::std::string name,
::GoalId const& goalId);
101 MCAPI ::std::optional<::BlockPos> _findWantedTargetPos()
const;
109 MCAPI
void* $ctor(
::Mob& mob, ::std::string name,
::GoalId const& goalId);
115 MCAPI
bool $canUse();
117 MCAPI
bool $canContinueToUse();
125 MCAPI
void $appendDebugInfo(::std::string& str)
const;