mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-03-26 18:38:56 +05:00
19 lines
315 B
C++
19 lines
315 B
C++
#pragma once
|
|
|
|
#include "TargetGoal.h"
|
|
|
|
class TamableAnimal;
|
|
|
|
class OwnerHurtTargetGoal : public TargetGoal
|
|
{
|
|
private:
|
|
TamableAnimal *tameAnimal; // Owner of this goal
|
|
weak_ptr<LivingEntity> ownerLastHurt;
|
|
int timestamp;
|
|
|
|
public:
|
|
OwnerHurtTargetGoal(TamableAnimal *tameAnimal);
|
|
|
|
bool canUse();
|
|
void start();
|
|
}; |