class FoxEntity.DefendFriendGoal extends FollowTargetGoal<LivingEntity>
Goal.Control
Modifier and Type | Field and Description |
---|---|
private LivingEntity |
friend |
private int |
lastAttackedTime |
private LivingEntity |
offender |
reciprocalChance, targetClass, targetEntity, targetPredicate
checkVisibility, maxTimeWithoutVisibility, mob, target
Constructor and Description |
---|
DefendFriendGoal(Class<LivingEntity> targetEntityClass,
boolean checkVisibility,
boolean checkCanNavigate,
Predicate<LivingEntity> targetPredicate) |
Modifier and Type | Method and Description |
---|---|
boolean |
canStart() |
void |
start() |
findClosestTarget, getSearchBox, setTargetEntity
canTrack, getFollowRange, setMaxTimeWithoutVisibility, shouldContinue, stop
canStop, getControls, setControls, tick, toString
@Nullable private LivingEntity offender
private LivingEntity friend
private int lastAttackedTime
public DefendFriendGoal(Class<LivingEntity> targetEntityClass, boolean checkVisibility, boolean checkCanNavigate, Predicate<LivingEntity> targetPredicate)
public boolean canStart()
canStart
in class FollowTargetGoal<LivingEntity>
public void start()
start
in class FollowTargetGoal<LivingEntity>