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
class FoxEntity.RevengeGoal extends NearestAttackableTargetGoal<LivingEntity>
-
-
Field Summary
Fields Modifier and Type Field Description private int
timestamp
private LivingEntity
trustedLastHurt
private LivingEntity
trustedLastHurtBy
-
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
Constructors Constructor Description RevengeGoal(java.lang.Class<LivingEntity> p_i50743_2_, boolean p_i50743_3_, boolean p_i50743_4_, java.util.function.Predicate<LivingEntity> p_i50743_5_)
-
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.NearestAttackableTargetGoal
findTarget, getTargetSearchArea, setTarget
-
Methods inherited from class net.minecraft.entity.ai.goal.TargetGoal
canAttack, canContinueToUse, getFollowDistance, setUnseenMemoryTicks, stop
-
-
-
-
Field Detail
-
trustedLastHurtBy
@Nullable private LivingEntity trustedLastHurtBy
-
trustedLastHurt
private LivingEntity trustedLastHurt
-
timestamp
private int timestamp
-
-
Constructor Detail
-
RevengeGoal
public RevengeGoal(java.lang.Class<LivingEntity> p_i50743_2_, boolean p_i50743_3_, boolean p_i50743_4_, @Nullable java.util.function.Predicate<LivingEntity> p_i50743_5_)
-
-
Method Detail
-
canUse
public boolean canUse()
- Overrides:
canUse
in classNearestAttackableTargetGoal<LivingEntity>
-
start
public void start()
- Overrides:
start
in classNearestAttackableTargetGoal<LivingEntity>
-
-