82 ::std::string
const& name,
107 enum class CanUseOutcome :
int {
111 CouldNotFindTargetPos = 3,
112 CouldNotCreatePath = 4,
113 CouldNotPathAllTheWay = 5,
116 enum class State :
int {
126 ::ll::TypedStorage<8, 744, ::RandomSearchAndDigGoal::Definition> mDefinition;
127 ::ll::TypedStorage<8, 8, ::Mob&> mMob;
128 ::ll::TypedStorage<4, 4, ::RandomSearchAndDigGoal::State> mState;
129 ::ll::TypedStorage<4, 4, float> mGoalRadiusSqr;
130 ::ll::TypedStorage<1, 1, bool> mItemFound;
131 ::ll::TypedStorage<4, 12, ::BlockPos> mTargetPos;
132 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::Path>> mPath;
133 ::ll::TypedStorage<2, 2, ushort> mCooldownDurationTicks;
134 ::ll::TypedStorage<2, 2, ushort> mDiggingDurationTicks;
135 ::ll::TypedStorage<2, 2, ushort> mSpawnItemAfterTicks;
136 ::ll::TypedStorage<8, 8, ::Tick> mCooldownEndTick;
137 ::ll::TypedStorage<8, 8, ::Tick> mItemFoundEndTick;
138 ::ll::TypedStorage<8, 8, ::Tick> mDiggingEndTick;
139 ::ll::TypedStorage<8, 24, ::std::optional<::ExpiringTick>> mDiggingParticleCooldown;
152 virtual bool canUse() ;
155 virtual bool canContinueToUse() ;
158 virtual void start() ;
161 virtual void stop() ;
164 virtual void tick() ;
167 virtual void appendDebugInfo(::std::string& str)
const ;
176 MCNAPI ::RandomSearchAndDigGoal::CanUseOutcome
_canUse();
Definition EntityContext.h:16