public class EscapeDangerGoal extends Goal
Goal.Control| Modifier and Type | Field and Description |
|---|---|
protected boolean |
field_23227 |
protected MobEntityWithAi |
mob |
protected double |
speed |
protected double |
targetX |
protected double |
targetY |
protected double |
targetZ |
| Constructor and Description |
|---|
EscapeDangerGoal(MobEntityWithAi mob,
double speed) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canStart() |
protected boolean |
findTarget() |
protected BlockPos |
locateClosestWater(BlockView blockView,
Entity entity,
int rangeX,
int rangeY) |
boolean |
method_26337() |
boolean |
shouldContinue() |
void |
start() |
void |
stop() |
canStop, getControls, setControls, tick, toStringprotected final MobEntityWithAi mob
protected final double speed
protected double targetX
protected double targetY
protected double targetZ
protected boolean field_23227
public EscapeDangerGoal(MobEntityWithAi mob, double speed)
protected boolean findTarget()
public boolean method_26337()
public boolean shouldContinue()
shouldContinue in class Goal