public class EscapeSunlightGoal extends Goal
Goal.Control| Modifier and Type | Field and Description |
|---|---|
protected MobEntityWithAi |
mob |
private double |
speed |
private double |
targetX |
private double |
targetY |
private double |
targetZ |
private World |
world |
| Constructor and Description |
|---|
EscapeSunlightGoal(MobEntityWithAi 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 MobEntityWithAi mob
private double targetX
private double targetY
private double targetZ
private final double speed
private final World world
public EscapeSunlightGoal(MobEntityWithAi mob, double speed)
protected boolean targetShadedPos()
public boolean shouldContinue()
shouldContinue in class Goal