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 CreatureEntitymob
-
Constructor Summary
Constructors Constructor Description BreatheAirGoal(CreatureEntity p_i48940_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanContinueToUse()booleancanUse()private voidfindAirPosition()private booleangivesAir(IWorldReader p_205140_1_, BlockPos p_205140_2_)booleanisInterruptable()voidstart()voidtick()
-
-
-
Field Detail
-
mob
private final CreatureEntity mob
-
-
Constructor Detail
-
BreatheAirGoal
public BreatheAirGoal(CreatureEntity p_i48940_1_)
-
-
Method Detail
-
canContinueToUse
public boolean canContinueToUse()
- Overrides:
canContinueToUsein classGoal
-
isInterruptable
public boolean isInterruptable()
- Overrides:
isInterruptablein classGoal
-
findAirPosition
private void findAirPosition()
-
givesAir
private boolean givesAir(IWorldReader p_205140_1_, BlockPos p_205140_2_)
-
-