static class TurtleEntity.TravelGoal extends Goal
Goal.Control
Modifier and Type | Field and Description |
---|---|
private boolean |
noPath |
private double |
speed |
private TurtleEntity |
turtle |
Constructor and Description |
---|
TravelGoal(TurtleEntity turtle,
double speed) |
Modifier and Type | Method and Description |
---|---|
boolean |
canStart() |
boolean |
shouldContinue() |
void |
start() |
void |
stop() |
void |
tick() |
canStop, getControls, setControls, toString
private final TurtleEntity turtle
private final double speed
private boolean noPath
TravelGoal(TurtleEntity turtle, double speed)
public boolean shouldContinue()
shouldContinue
in class Goal