Files
MinecraftConsoles/Minecraft.World/OwnerHurtByTargetGoal.h
T
2026-07-09 04:15:40 -04:00

19 lines
321 B
C++

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