4jcraft/Minecraft.World/AI/Goals/DefendVillageTargetGoal.h
2026-03-06 20:39:58 -06:00

18 lines
295 B
C++

#pragma once
#include "TargetGoal.h"
class VillagerGolem;
class DefendVillageTargetGoal : public TargetGoal
{
private:
VillagerGolem *golem; // Owner of this goal
std::weak_ptr<Mob> potentialTarget;
public:
DefendVillageTargetGoal(VillagerGolem *golem);
bool canUse();
void start();
};