This repository has been archived on 2026-05-14. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
MinecraftConsoles/Minecraft.World/MoveTowardsTargetGoal.h
2026-03-01 11:00:23 -06:00

21 lines
375 B
C++

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