public class FollowParentGoal extends Goal
| Modifier and Type | Field and Description |
|---|---|
private AnimalEntity |
childAnimal |
private int |
delayCounter |
private double |
moveSpeed |
private AnimalEntity |
parentAnimal |
| Constructor and Description |
|---|
FollowParentGoal(AnimalEntity animal,
double speed) |
| Modifier and Type | Method and Description |
|---|---|
void |
resetTask() |
boolean |
shouldContinueExecuting() |
boolean |
shouldExecute() |
void |
startExecuting() |
void |
tick() |
getMutexFlags, isPreemptible, setMutexFlags, toStringprivate final AnimalEntity childAnimal
private AnimalEntity parentAnimal
private final double moveSpeed
private int delayCounter
public FollowParentGoal(AnimalEntity animal, double speed)
public boolean shouldExecute()
shouldExecute in class Goalpublic boolean shouldContinueExecuting()
shouldContinueExecuting in class Goalpublic void startExecuting()
startExecuting in class Goal