Package net.minecraft.entity.ai.goal
Class OwnerHurtByTargetGoal
- java.lang.Object
-
- net.minecraft.entity.ai.goal.Goal
-
- net.minecraft.entity.ai.goal.TargetGoal
-
- net.minecraft.entity.ai.goal.OwnerHurtByTargetGoal
-
public class OwnerHurtByTargetGoal extends TargetGoal
-
-
Field Summary
Fields Modifier and Type Field Description private LivingEntity
ownerLastHurtBy
private TameableEntity
tameAnimal
private int
timestamp
-
Fields inherited from class net.minecraft.entity.ai.goal.TargetGoal
mob, mustSee, targetMob, unseenMemoryTicks
-
-
Constructor Summary
Constructors Constructor Description OwnerHurtByTargetGoal(TameableEntity p_i1667_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canUse()
void
start()
-
Methods inherited from class net.minecraft.entity.ai.goal.TargetGoal
canAttack, canContinueToUse, getFollowDistance, setUnseenMemoryTicks, stop
-
-
-
-
Field Detail
-
tameAnimal
private final TameableEntity tameAnimal
-
ownerLastHurtBy
private LivingEntity ownerLastHurtBy
-
timestamp
private int timestamp
-
-
Constructor Detail
-
OwnerHurtByTargetGoal
public OwnerHurtByTargetGoal(TameableEntity p_i1667_1_)
-
-
Method Detail
-
start
public void start()
- Overrides:
start
in classTargetGoal
-
-