public class EscapeDangerGoal extends Goal
Goal.Control
Modifier and Type | Field and Description |
---|---|
protected boolean |
active |
protected PathAwareEntity |
mob |
protected double |
speed |
protected double |
targetX |
protected double |
targetY |
protected double |
targetZ |
Constructor and Description |
---|
EscapeDangerGoal(PathAwareEntity 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 PathAwareEntity mob
protected final double speed
protected double targetX
protected double targetY
protected double targetZ
protected boolean active
public EscapeDangerGoal(PathAwareEntity mob, double speed)
protected boolean findTarget()
public boolean isActive()
public boolean shouldContinue()
shouldContinue
in class Goal