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 AnimalEntityanimalprivate AnimalEntityparentprivate doublespeedModifierprivate inttimeToRecalcPath
-
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 booleancanContinueToUse()booleancanUse()voidstart()voidstop()voidtick()-
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:
canContinueToUsein classGoal
-
-