Class PanicGoal

java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.PanicGoal
Direct Known Subclasses:
FoxEntity.PanicGoal, PandaEntity.PanicGoal, PolarBearEntity.PanicGoal, RabbitEntity.PanicGoal, TurtleEntity.PanicGoal

public class PanicGoal extends Goal
  • Field Details

    • mob

      protected final CreatureEntity mob
    • speedModifier

      protected final double speedModifier
    • posX

      protected double posX
    • posY

      protected double posY
    • posZ

      protected double posZ
    • isRunning

      protected boolean isRunning
  • Constructor Details

    • PanicGoal

      public PanicGoal(CreatureEntity p_i1645_1_, double p_i1645_2_)
  • Method Details

    • canUse

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

      protected boolean findRandomPosition()
    • isRunning

      public boolean isRunning()
    • start

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

      public void stop()
      Overrides:
      stop in class Goal
    • canContinueToUse

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

      @Nullable protected BlockPos lookForWater(IBlockReader p_188497_1_, Entity p_188497_2_, int p_188497_3_, int p_188497_4_)