4jcraft/targets/minecraft/world/entity/ai/goal/TemptGoal.h
2026-04-01 13:27:58 -05:00

32 lines
580 B
C++

#pragma once
#include <memory>
#include "Goal.h"
class PathfinderMob;
class Player;
class TemptGoal : public Goal {
private:
PathfinderMob* mob;
double speedModifier;
double px, py, pz, pRotX, pRotY;
std::weak_ptr<Player> player;
int calmDown;
bool _isRunning;
int itemId;
bool canScare;
bool oldAvoidWater;
public:
TemptGoal(PathfinderMob* mob, double speedModifier, int itemId,
bool canScare);
bool canUse();
bool canContinueToUse();
void start();
void stop();
void tick();
bool isRunning();
};