public class GoToEntityTargetGoal extends Goal
Goal.Control| Modifier and Type | Field and Description |
|---|---|
private float |
maxDistance |
private MobEntityWithAi |
mob |
private double |
speed |
private LivingEntity |
target |
private double |
x |
private double |
y |
private double |
z |
| Constructor and Description |
|---|
GoToEntityTargetGoal(MobEntityWithAi mob,
double speed,
float maxDistance) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canStart() |
boolean |
shouldContinue() |
void |
start() |
void |
stop() |
canStop, getControls, setControls, tick, toStringprivate final MobEntityWithAi mob
private LivingEntity target
private double x
private double y
private double z
private final double speed
private final float maxDistance
public GoToEntityTargetGoal(MobEntityWithAi mob, double speed, float maxDistance)