22class AvoidBlockGoal :
public ::Goal {
26 ::ll::TypedStorage<4, 12, ::Vec3> mTargetPos;
27 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::Path>> mPath;
28 ::ll::TypedStorage<8, 8, ::Mob&> mMob;
29 ::ll::TypedStorage<8, 8, ::Tick> mNextStartTick;
30 ::ll::TypedStorage<4, 12, ::BlockPos> mTargetBlockToAvoidPos;
31 ::ll::TypedStorage<4, 4, float> mWalkSpeedModifier;
32 ::ll::TypedStorage<4, 4, float> mSprintSpeedModifier;
33 ::ll::TypedStorage<4, 4, int> mSearchRange;
34 ::ll::TypedStorage<4, 4, int> mSearchHeight;
35 ::ll::TypedStorage<4, 4, int> mInterval;
36 ::ll::TypedStorage<1, 1, ::TargetSelectionMethod> mMethod;
37 ::ll::TypedStorage<8, 24, ::std::vector<::ItemDescriptor>> mTargetBlockDescriptors;
38 ::ll::TypedStorage<8, 24, ::std::vector<::ActorDefinitionTrigger>> mOnEscapedTriggers;
39 ::ll::TypedStorage<4, 4, ::SharedTypes::Legacy::LevelSoundEvent> mSoundEvent;
40 ::ll::TypedStorage<4, 8, ::SharedTypes::FloatRange> mSoundIntervalRange;
41 ::ll::TypedStorage<8, 8, ::Tick> mNextSoundEventTick;
46 AvoidBlockGoal& operator=(AvoidBlockGoal
const&);
47 AvoidBlockGoal(AvoidBlockGoal
const&);
53 virtual bool canUse() ;
55 virtual bool canContinueToUse() ;
59 virtual void appendDebugInfo(::std::string& str)
const ;
61 virtual void start() ;
65 virtual ~AvoidBlockGoal() ;
71 MCAPI
bool _findTargetBlock();
85 MCAPI
bool $canContinueToUse();
89 MCAPI
void $appendDebugInfo(::std::string& str)
const;