Files
MinecraftConsoles/Minecraft.World/OwnerHurtByTargetGoal.h

18 lines
296 B
C
Raw Normal View History

2026-03-01 12:16:08 +08:00
#pragma once
#include "TargetGoal.h"
class TamableAnimal;
class OwnerHurtByTargetGoal : public TargetGoal
{
private:
TamableAnimal *tameAnimal; // Owner of this goal
weak_ptr<Mob> ownerLastHurtBy;
public:
OwnerHurtByTargetGoal(TamableAnimal *tameAnimal);
bool canUse();
void start();
};