This repository has been archived on 2026-05-14. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
MinecraftConsoles/Minecraft.World/OwnerHurtTargetGoal.h
2026-03-01 12:16:08 +08:00

18 lines
290 B
C++

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