Class BreatheAirGoal

java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.BreatheAirGoal

public class BreatheAirGoal extends Goal
  • Field Details

  • Constructor Details

  • Method Details

    • canUse

      public boolean canUse()
      Specified by:
      canUse in class Goal
    • canContinueToUse

      public boolean canContinueToUse()
      Overrides:
      canContinueToUse in class Goal
    • isInterruptable

      public boolean isInterruptable()
      Overrides:
      isInterruptable in class Goal
    • start

      public void start()
      Overrides:
      start in class Goal
    • findAirPosition

      private void findAirPosition()
    • tick

      public void tick()
      Overrides:
      tick in class Goal
    • givesAir

      private boolean givesAir(IWorldReader p_205140_1_, BlockPos p_205140_2_)