4jcraft/Minecraft.World/AI/Goals/DefendVillageTargetGoal.h
2026-03-21 15:10:07 -05:00

17 lines
320 B
C++

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