4jcraft/Minecraft.World/AI/Goals/OwnerHurtByTargetGoal.h
2026-03-13 17:06:56 -05:00

17 lines
317 B
C++

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