public class MoveTowardsTargetGoal extends Goal
Modifier and Type | Field and Description |
---|---|
private CreatureEntity |
creature |
private float |
maxTargetDistance |
private double |
movePosX |
private double |
movePosY |
private double |
movePosZ |
private double |
speed |
private LivingEntity |
targetEntity |
Constructor and Description |
---|
MoveTowardsTargetGoal(CreatureEntity creature,
double speedIn,
float targetMaxDistance) |
Modifier and Type | Method and Description |
---|---|
void |
resetTask() |
boolean |
shouldContinueExecuting() |
boolean |
shouldExecute() |
void |
startExecuting() |
getMutexFlags, isPreemptible, setMutexFlags, tick, toString
private final CreatureEntity creature
private LivingEntity targetEntity
private double movePosX
private double movePosY
private double movePosZ
private final double speed
private final float maxTargetDistance
public MoveTowardsTargetGoal(CreatureEntity creature, double speedIn, float targetMaxDistance)
public boolean shouldExecute()
shouldExecute
in class Goal
public boolean shouldContinueExecuting()
shouldContinueExecuting
in class Goal
public void startExecuting()
startExecuting
in class Goal