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
-
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 float
maxDistance
private float
minDistance
private MobEntity
mob
private EntityNavigation
navigation
private float
oldWaterPathFindingPenalty
private double
speed
private MobEntity
target
private Predicate<MobEntity>
targetPredicate
private int
updateCountdownTicks
-
Constructor Summary
Constructors Constructor Description FollowMobGoal(MobEntity mob, double speed, float minDistance, float maxDistance)
-
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
-
mob
-
targetPredicate
-
target
-
speed
private final double speed -
updateCountdownTicks
private int updateCountdownTicks -
minDistance
private final float minDistance -
oldWaterPathFindingPenalty
private float oldWaterPathFindingPenalty -
maxDistance
private final float maxDistance
-
-
Constructor Details
-
FollowMobGoal
-
-
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()
-