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, toString
private 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 Goal
public boolean shouldContinueExecuting()
shouldContinueExecuting
in class Goal
public void startExecuting()
startExecuting
in class Goal