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

26 lines
479 B
C++

#pragma once
#include <memory>
#include "Goal.h"
class LivingEntity;
class Villager;
class PlayGoal : public Goal {
private:
Villager* mob;
std::weak_ptr<LivingEntity> followFriend;
double speedModifier;
double wantedX, wantedY, wantedZ;
int playTime;
public:
PlayGoal(Villager* mob, double speedModifier);
virtual bool canUse();
virtual bool canContinueToUse();
virtual void start();
virtual void stop();
virtual void tick();
};