public class FollowParentGoal extends Goal
Goal.Control
Modifier and Type | Field and Description |
---|---|
private AnimalEntity |
animal |
private int |
delay |
private AnimalEntity |
parent |
private double |
speed |
Constructor and Description |
---|
FollowParentGoal(AnimalEntity animal,
double speed) |
Modifier and Type | Method and Description |
---|---|
boolean |
canStart() |
boolean |
shouldContinue() |
void |
start() |
void |
stop() |
void |
tick() |
canStop, getControls, setControls, toString
private final AnimalEntity animal
private AnimalEntity parent
private final double speed
private int delay
public FollowParentGoal(AnimalEntity animal, double speed)
public boolean shouldContinue()
shouldContinue
in class Goal