Class PanicGoal

    • Field Detail

      • speedModifier

        protected final double speedModifier
      • posX

        protected double posX
      • posY

        protected double posY
      • posZ

        protected double posZ
      • isRunning

        protected boolean isRunning
    • Constructor Detail

      • PanicGoal

        public PanicGoal​(CreatureEntity p_i1645_1_,
                         double p_i1645_2_)
    • Method Detail

      • 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
      • lookForWater

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