Package net.minecraft.entity.ai.goal
Class OwnerHurtTargetGoal
- java.lang.Object
-
- net.minecraft.entity.ai.goal.Goal
-
- net.minecraft.entity.ai.goal.TargetGoal
-
- net.minecraft.entity.ai.goal.OwnerHurtTargetGoal
-
public class OwnerHurtTargetGoal extends TargetGoal
-
-
Field Summary
Fields Modifier and Type Field Description private LivingEntity
ownerLastHurt
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 OwnerHurtTargetGoal(TameableEntity p_i1668_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
-
ownerLastHurt
private LivingEntity ownerLastHurt
-
timestamp
private int timestamp
-
-
Constructor Detail
-
OwnerHurtTargetGoal
public OwnerHurtTargetGoal(TameableEntity p_i1668_1_)
-
-
Method Detail
-
start
public void start()
- Overrides:
start
in classTargetGoal
-
-