Files
MinecraftConsoles/Minecraft.World/MoveTowardsTargetGoal.h

21 lines
375 B
C
Raw Permalink Normal View History

2026-03-01 12:16:08 +08:00
#pragma once
#include "Goal.h"
class MoveTowardsTargetGoal : public Goal
{
private:
PathfinderMob *mob;
weak_ptr<LivingEntity> target;
2026-03-01 12:16:08 +08:00
double wantedX, wantedY, wantedZ;
double speedModifier;
float within;
2026-03-01 12:16:08 +08:00
public:
MoveTowardsTargetGoal(PathfinderMob *mob, double speedModifier, float within);
2026-03-01 12:16:08 +08:00
bool canUse();
bool canContinueToUse();
void stop();
void start();
};