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, toStringprivate 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 Goalpublic boolean shouldContinueExecuting()
shouldContinueExecuting in class Goalpublic void startExecuting()
startExecuting in class Goal