Package net.minecraft.entity.ai.goal
Class FollowMobGoal
- java.lang.Object
-
- net.minecraft.entity.ai.goal.Goal
-
- net.minecraft.entity.ai.goal.FollowMobGoal
-
public class FollowMobGoal extends Goal
-
-
Field Summary
Fields Modifier and Type Field Description private float
areaSize
private MobEntity
followingMob
private java.util.function.Predicate<MobEntity>
followPredicate
private MobEntity
mob
private PathNavigator
navigation
private float
oldWaterCost
private double
speedModifier
private float
stopDistance
private int
timeToRecalcPath
-
Constructor Summary
Constructors Constructor Description FollowMobGoal(MobEntity p_i47417_1_, double p_i47417_2_, float p_i47417_4_, float p_i47417_5_)
-
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
-
mob
private final MobEntity mob
-
followPredicate
private final java.util.function.Predicate<MobEntity> followPredicate
-
followingMob
private MobEntity followingMob
-
speedModifier
private final double speedModifier
-
navigation
private final PathNavigator navigation
-
timeToRecalcPath
private int timeToRecalcPath
-
stopDistance
private final float stopDistance
-
oldWaterCost
private float oldWaterCost
-
areaSize
private final float areaSize
-
-
Constructor Detail
-
FollowMobGoal
public FollowMobGoal(MobEntity p_i47417_1_, double p_i47417_2_, float p_i47417_4_, float p_i47417_5_)
-
-
Method Detail
-
canContinueToUse
public boolean canContinueToUse()
- Overrides:
canContinueToUse
in classGoal
-
-