Files
MinecraftConsoles/Minecraft.World/PlayGoal.h

22 lines
385 B
C
Raw Normal View History

2026-03-01 12:16:08 +08:00
#pragma once
#include "Goal.h"
class PlayGoal : public Goal
{
private:
Villager *mob;
weak_ptr<LivingEntity> followFriend;
double speedModifier;
2026-03-01 12:16:08 +08:00
double wantedX, wantedY, wantedZ;
int playTime;
public:
PlayGoal(Villager *mob, double speedModifier);
2026-03-01 12:16:08 +08:00
virtual bool canUse();
virtual bool canContinueToUse();
virtual void start();
virtual void stop();
virtual void tick();
};