82 MCAPI
static void buildSchema(
83 ::std::string
const& name,
104 MCAPI
static void** $vftable();
108 enum class CanUseOutcome :
int {
112 CouldNotFindTargetPos = 3,
113 CouldNotCreatePath = 4,
114 CouldNotPathAllTheWay = 5,
117 enum class State :
int {
127 ::ll::TypedStorage<8, 776, ::RandomSearchAndDigGoal::Definition> mDefinition;
128 ::ll::TypedStorage<8, 8, ::Mob&> mMob;
129 ::ll::TypedStorage<4, 4, ::RandomSearchAndDigGoal::State> mState;
130 ::ll::TypedStorage<4, 4, float> mGoalRadiusSqr;
131 ::ll::TypedStorage<1, 1, bool> mItemFound;
132 ::ll::TypedStorage<4, 12, ::BlockPos> mTargetPos;
133 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::Path>> mPath;
134 ::ll::TypedStorage<2, 2, ushort> mCooldownDurationTicks;
135 ::ll::TypedStorage<2, 2, ushort> mDiggingDurationTicks;
136 ::ll::TypedStorage<2, 2, ushort> mSpawnItemAfterTicks;
137 ::ll::TypedStorage<8, 8, ::Tick> mCooldownEndTick;
138 ::ll::TypedStorage<8, 8, ::Tick> mItemFoundEndTick;
139 ::ll::TypedStorage<8, 8, ::Tick> mDiggingEndTick;
140 ::ll::TypedStorage<8, 24, ::std::optional<::ExpiringTick>> mDiggingParticleCooldown;
147 virtual bool canUse() ;
150 virtual bool canContinueToUse() ;
153 virtual void start() ;
156 virtual void stop() ;
159 virtual void tick() ;
162 virtual void appendDebugInfo(::std::string& str)
const ;
171 MCAPI ::RandomSearchAndDigGoal::CanUseOutcome _canUse();
173 MCAPI
void _digUpItems();
175 MCAPI
void _emitDiggingParticles();
177 MCAPI ::std::optional<::BlockPos> _findWantedTargetPos()
const;
193 MCAPI
bool $canUse();
195 MCAPI
bool $canContinueToUse();
203 MCAPI
void $appendDebugInfo(::std::string& str)
const;
209 MCAPI
static void** $vftable();
Definition EntityContext.h:16