Package net.minecraft.entity.passive
Class FoxEntity.RevengeGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.TargetGoal
net.minecraft.entity.ai.goal.NearestAttackableTargetGoal<LivingEntity>
net.minecraft.entity.passive.FoxEntity.RevengeGoal
- Enclosing class:
- FoxEntity
-
Nested Class Summary
-
Field Summary
Fields inherited from class net.minecraft.entity.ai.goal.NearestAttackableTargetGoal
randomInterval, target, targetConditions, targetType
Fields inherited from class net.minecraft.entity.ai.goal.TargetGoal
mob, mustSee, targetMob, unseenMemoryTicks
-
Constructor Summary
ConstructorDescriptionRevengeGoal
(Class<LivingEntity> p_i50743_2_, boolean p_i50743_3_, boolean p_i50743_4_, Predicate<LivingEntity> p_i50743_5_) -
Method Summary
Methods inherited from class net.minecraft.entity.ai.goal.NearestAttackableTargetGoal
findTarget, getTargetSearchArea, setTarget
Methods inherited from class net.minecraft.entity.ai.goal.TargetGoal
canAttack, canContinueToUse, getFollowDistance, setUnseenMemoryTicks, stop
-
Field Details
-
trustedLastHurtBy
-
trustedLastHurt
-
timestamp
private int timestamp
-
-
Constructor Details
-
RevengeGoal
public RevengeGoal(Class<LivingEntity> p_i50743_2_, boolean p_i50743_3_, boolean p_i50743_4_, @Nullable Predicate<LivingEntity> p_i50743_5_)
-
-
Method Details
-
canUse
public boolean canUse()- Overrides:
canUse
in classNearestAttackableTargetGoal<LivingEntity>
-
start
public void start()- Overrides:
start
in classNearestAttackableTargetGoal<LivingEntity>
-