Add Discord RPC back with new features, add beta splitscreen support, PR's from MCLCE used in this https://github.com/MCLCE/MinecraftConsoles/pull/1044 https://github.com/MCLCE/MinecraftConsoles/pull/1136 https://github.com/MCLCE/MinecraftConsoles/pull/1245
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();
|
|
}; |