public class BreatheAirGoal extends Goal
Goal.Control| Modifier and Type | Field and Description |
|---|---|
private PathAwareEntity |
mob |
| Constructor and Description |
|---|
BreatheAirGoal(PathAwareEntity mob) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canStart() |
boolean |
canStop() |
private boolean |
isAirPos(WorldView world,
BlockPos pos) |
private void |
moveToAir() |
boolean |
shouldContinue() |
void |
start() |
void |
tick() |
getControls, setControls, stop, toStringprivate final PathAwareEntity mob
public BreatheAirGoal(PathAwareEntity mob)
public boolean shouldContinue()
shouldContinue in class Goalprivate void moveToAir()