public class FollowMobGoal extends Goal
Modifier and Type | Field and Description |
---|---|
private float |
areaSize |
private MobEntity |
entity |
private MobEntity |
followingEntity |
private java.util.function.Predicate<MobEntity> |
followPredicate |
private PathNavigator |
navigation |
private float |
oldWaterCost |
private double |
speedModifier |
private float |
stopDistance |
private int |
timeToRecalcPath |
Constructor and Description |
---|
FollowMobGoal(MobEntity p_i47417_1_,
double p_i47417_2_,
float p_i47417_4_,
float p_i47417_5_) |
Modifier and Type | Method and Description |
---|---|
void |
resetTask() |
boolean |
shouldContinueExecuting() |
boolean |
shouldExecute() |
void |
startExecuting() |
void |
tick() |
getMutexFlags, isPreemptible, setMutexFlags, toString
private final MobEntity entity
private final java.util.function.Predicate<MobEntity> followPredicate
private MobEntity followingEntity
private final double speedModifier
private final PathNavigator navigation
private int timeToRecalcPath
private final float stopDistance
private float oldWaterCost
private final float areaSize
public FollowMobGoal(MobEntity p_i47417_1_, double p_i47417_2_, float p_i47417_4_, float p_i47417_5_)
public boolean shouldExecute()
shouldExecute
in class Goal
public boolean shouldContinueExecuting()
shouldContinueExecuting
in class Goal
public void startExecuting()
startExecuting
in class Goal