public static class PatrolEntity.PatrolGoal<T extends PatrolEntity> extends Goal
Goal.Control
Modifier and Type | Field and Description |
---|---|
private T |
entity |
private double |
followSpeed |
private double |
leaderSpeed |
private long |
nextPatrolSearchTime |
Constructor and Description |
---|
PatrolGoal(T entity,
double leaderSpeed,
double followSpeed) |
Modifier and Type | Method and Description |
---|---|
boolean |
canStart() |
private List<PatrolEntity> |
findPatrolTargets() |
void |
start() |
void |
stop() |
void |
tick() |
private boolean |
wander() |
canStop, getControls, setControls, shouldContinue, toString
private final T extends PatrolEntity entity
private final double leaderSpeed
private final double followSpeed
private long nextPatrolSearchTime
public PatrolGoal(T entity, double leaderSpeed, double followSpeed)
private List<PatrolEntity> findPatrolTargets()
private boolean wander()