Package net.minecraft.entity.ai.goal
Class FollowParentGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.FollowParentGoal
- Direct Known Subclasses:
FoxEntity.FollowParentGoal
public class FollowParentGoal extends Goal
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control
-
Field Summary
Fields Modifier and Type Field Description private AnimalEntity
animal
private int
delay
private AnimalEntity
parent
private double
speed
-
Constructor Summary
Constructors Constructor Description FollowParentGoal(AnimalEntity animal, double speed)
-
Method Summary
Modifier and Type Method Description boolean
canStart()
boolean
shouldContinue()
void
start()
void
stop()
void
tick()
Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, toString
-
Field Details
-
animal
-
parent
-
speed
private final double speed -
delay
private int delay
-
-
Constructor Details
-
FollowParentGoal
-
-
Method Details
-
canStart
public boolean canStart() -
shouldContinue
public boolean shouldContinue()- Overrides:
shouldContinue
in classGoal
-
start
public void start() -
stop
public void stop() -
tick
public void tick()
-