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