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.FollowGoal
public class FollowParentGoal extends Goal
-
-
Field Summary
Fields Modifier and Type Field Description private AnimalEntity
animal
private AnimalEntity
parent
private double
speedModifier
private int
timeToRecalcPath
-
Constructor Summary
Constructors Constructor Description FollowParentGoal(AnimalEntity p_i1626_1_, double p_i1626_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canContinueToUse()
boolean
canUse()
void
start()
void
stop()
void
tick()
-
Methods inherited from class net.minecraft.entity.ai.goal.Goal
getFlags, isInterruptable, setFlags, toString
-
-
-
-
Field Detail
-
animal
private final AnimalEntity animal
-
parent
private AnimalEntity parent
-
speedModifier
private final double speedModifier
-
timeToRecalcPath
private int timeToRecalcPath
-
-
Constructor Detail
-
FollowParentGoal
public FollowParentGoal(AnimalEntity p_i1626_1_, double p_i1626_2_)
-
-
Method Detail
-
canContinueToUse
public boolean canContinueToUse()
- Overrides:
canContinueToUse
in classGoal
-
-