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 AnimalEntityanimalprivate intdelayprivate AnimalEntityparentprivate doublespeed -
Constructor Summary
Constructors Constructor Description FollowParentGoal(AnimalEntity animal, double speed) -
Method Summary
Modifier and Type Method Description booleancanStart()booleanshouldContinue()voidstart()voidstop()voidtick()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:
shouldContinuein classGoal
-
start
public void start() -
stop
public void stop() -
tick
public void tick()
-