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, targetPredicatecheckVisibility, 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, setTargetEntitycanTrack, getFollowRange, setMaxTimeWithoutVisibility, shouldContinue, stopcanStop, 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>