public class DisableableFollowTargetGoal<T extends LivingEntity> extends FollowTargetGoal<T>
Goal.Control| Modifier and Type | Field and Description |
|---|---|
private boolean |
enabled |
reciprocalChance, targetClass, targetEntity, targetPredicatecheckVisibility, maxTimeWithoutVisibility, mob, target| Constructor and Description |
|---|
DisableableFollowTargetGoal(RaiderEntity actor,
Class<T> targetEntityClass,
int reciprocalChance,
boolean checkVisibility,
boolean checkCanNavigate,
Predicate<LivingEntity> targetPredicate) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canStart() |
void |
setEnabled(boolean enabled) |
findClosestTarget, getSearchBox, setTargetEntity, startcanTrack, getFollowRange, setMaxTimeWithoutVisibility, shouldContinue, stopcanStop, getControls, setControls, tick, toStringpublic DisableableFollowTargetGoal(RaiderEntity actor, Class<T> targetEntityClass, int reciprocalChance, boolean checkVisibility, boolean checkCanNavigate, @Nullable Predicate<LivingEntity> targetPredicate)
public void setEnabled(boolean enabled)
public boolean canStart()
canStart in class FollowTargetGoal<T extends LivingEntity>