public class EscapeDangerGoal extends Goal
Goal.Control
Modifier and Type | Field and Description |
---|---|
protected boolean |
active |
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() |
boolean |
isActive() |
protected BlockPos |
locateClosestWater(BlockView blockView,
Entity entity,
int rangeX,
int rangeY) |
boolean |
shouldContinue() |
void |
start() |
void |
stop() |
canStop, getControls, setControls, tick, toString
protected final MobEntityWithAi mob
protected final double speed
protected double targetX
protected double targetY
protected double targetZ
protected boolean active
public EscapeDangerGoal(MobEntityWithAi mob, double speed)
protected boolean findTarget()
public boolean isActive()
public boolean shouldContinue()
shouldContinue
in class Goal