public class FollowMobGoal extends Goal
Goal.Control
Modifier and Type | Field and Description |
---|---|
private float |
maxDistance |
private float |
minDistance |
private MobEntity |
mob |
private EntityNavigation |
navigation |
private float |
oldWaterPathFindingPenalty |
private double |
speed |
private MobEntity |
target |
private Predicate<MobEntity> |
targetPredicate |
private int |
updateCountdownTicks |
Constructor and Description |
---|
FollowMobGoal(MobEntity mob,
double speed,
float minDistance,
float maxDistance) |
Modifier and Type | Method and Description |
---|---|
boolean |
canStart() |
boolean |
shouldContinue() |
void |
start() |
void |
stop() |
void |
tick() |
canStop, getControls, setControls, toString
private final MobEntity mob
private MobEntity target
private final double speed
private final EntityNavigation navigation
private int updateCountdownTicks
private final float minDistance
private float oldWaterPathFindingPenalty
private final float maxDistance
public FollowMobGoal(MobEntity mob, double speed, float minDistance, float maxDistance)
public boolean shouldContinue()
shouldContinue
in class Goal