Package net.minecraft.entity.ai.goal
Class BreatheAirGoal
- java.lang.Object
-
- net.minecraft.entity.ai.goal.Goal
-
- net.minecraft.entity.ai.goal.BreatheAirGoal
-
public class BreatheAirGoal extends Goal
-
-
Field Summary
Fields Modifier and Type Field Description private CreatureEntity
mob
-
Constructor Summary
Constructors Constructor Description BreatheAirGoal(CreatureEntity p_i48940_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canContinueToUse()
boolean
canUse()
private void
findAirPosition()
private boolean
givesAir(IWorldReader p_205140_1_, BlockPos p_205140_2_)
boolean
isInterruptable()
void
start()
void
tick()
-
-
-
Field Detail
-
mob
private final CreatureEntity mob
-
-
Constructor Detail
-
BreatheAirGoal
public BreatheAirGoal(CreatureEntity p_i48940_1_)
-
-
Method Detail
-
canContinueToUse
public boolean canContinueToUse()
- Overrides:
canContinueToUse
in classGoal
-
isInterruptable
public boolean isInterruptable()
- Overrides:
isInterruptable
in classGoal
-
findAirPosition
private void findAirPosition()
-
givesAir
private boolean givesAir(IWorldReader p_205140_1_, BlockPos p_205140_2_)
-
-