Package net.minecraft.entity.passive
Class FoxEntity.DefendFriendGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.TrackTargetGoal
net.minecraft.entity.ai.goal.FollowTargetGoal<LivingEntity>
net.minecraft.entity.passive.FoxEntity.DefendFriendGoal
- Enclosing class:
- FoxEntity
class FoxEntity.DefendFriendGoal extends FollowTargetGoal<LivingEntity>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control
-
Field Summary
Fields Modifier and Type Field Description private LivingEntity
friend
private int
lastAttackedTime
private LivingEntity
offender
Fields inherited from class net.minecraft.entity.ai.goal.FollowTargetGoal
reciprocalChance, targetClass, targetEntity, targetPredicate
Fields inherited from class net.minecraft.entity.ai.goal.TrackTargetGoal
checkVisibility, maxTimeWithoutVisibility, mob, target
-
Constructor Summary
Constructors Constructor Description DefendFriendGoal(Class<LivingEntity> targetEntityClass, boolean checkVisibility, boolean checkCanNavigate, Predicate<LivingEntity> targetPredicate)
-
Method Summary
Methods inherited from class net.minecraft.entity.ai.goal.FollowTargetGoal
findClosestTarget, getSearchBox, setTargetEntity
Methods inherited from class net.minecraft.entity.ai.goal.TrackTargetGoal
canTrack, getFollowRange, setMaxTimeWithoutVisibility, shouldContinue, stop
Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, tick, toString
-
Field Details
-
offender
-
friend
-
lastAttackedTime
private int lastAttackedTime
-
-
Constructor Details
-
DefendFriendGoal
public DefendFriendGoal(Class<LivingEntity> targetEntityClass, boolean checkVisibility, boolean checkCanNavigate, Predicate<LivingEntity> targetPredicate)
-
-
Method Details
-
canStart
public boolean canStart()- Overrides:
canStart
in classFollowTargetGoal<LivingEntity>
-
start
public void start()- Overrides:
start
in classFollowTargetGoal<LivingEntity>
-