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

20 lines
359 B
C++

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