public class DisableableFollowTargetGoal<T extends LivingEntity> extends FollowTargetGoal<T>
Goal.Control
Modifier and Type | Field and Description |
---|---|
private boolean |
enabled |
reciprocalChance, targetClass, targetEntity, targetPredicate
checkVisibility, 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, start
canTrack, getFollowRange, setMaxTimeWithoutVisibility, shouldContinue, stop
canStop, getControls, setControls, tick, toString
public 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>