public class EscapeSunlightGoal extends Goal
Goal.Control| Modifier and Type | Field and Description |
|---|---|
protected PathAwareEntity |
mob |
private double |
speed |
private double |
targetX |
private double |
targetY |
private double |
targetZ |
private World |
world |
| Constructor and Description |
|---|
EscapeSunlightGoal(PathAwareEntity mob,
double speed) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canStart() |
protected Vec3d |
locateShadedPos() |
boolean |
shouldContinue() |
void |
start() |
protected boolean |
targetShadedPos() |
canStop, getControls, setControls, stop, tick, toStringprotected final PathAwareEntity mob
private double targetX
private double targetY
private double targetZ
private final double speed
private final World world
public EscapeSunlightGoal(PathAwareEntity mob, double speed)
protected boolean targetShadedPos()
public boolean shouldContinue()
shouldContinue in class Goal