public class BreatheAirGoal extends Goal
Goal.Control
Modifier and Type | Field and Description |
---|---|
private MobEntityWithAi |
mob |
Constructor and Description |
---|
BreatheAirGoal(MobEntityWithAi 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, toString
private final MobEntityWithAi mob
public BreatheAirGoal(MobEntityWithAi mob)
public boolean shouldContinue()
shouldContinue
in class Goal
private void moveToAir()