Class HoglinTasks


  • public class HoglinTasks
    extends java.lang.Object
    • Field Detail

      • RETREAT_DURATION

        private static final RangedInteger RETREAT_DURATION
      • ADULT_FOLLOW_RANGE

        private static final RangedInteger ADULT_FOLLOW_RANGE
    • Constructor Detail

      • HoglinTasks

        public HoglinTasks()
    • Method Detail

      • initCoreActivity

        private static void initCoreActivity​(Brain<HoglinEntity> p_234382_0_)
      • initIdleActivity

        private static void initIdleActivity​(Brain<HoglinEntity> p_234385_0_)
      • initFightActivity

        private static void initFightActivity​(Brain<HoglinEntity> p_234388_0_)
      • initRetreatActivity

        private static void initRetreatActivity​(Brain<HoglinEntity> p_234391_0_)
      • updateActivity

        protected static void updateActivity​(HoglinEntity p_234377_0_)
      • retreatFromNearestTarget

        private static void retreatFromNearestTarget​(HoglinEntity p_234390_0_,
                                                     LivingEntity p_234390_1_)
      • findNearestValidAttackTarget

        private static java.util.Optional<? extends LivingEntity> findNearestValidAttackTarget​(HoglinEntity p_234392_0_)
      • isPosNearNearestRepellent

        static boolean isPosNearNearestRepellent​(HoglinEntity p_234380_0_,
                                                 BlockPos p_234380_1_)
      • wantsToStopFleeing

        private static boolean wantsToStopFleeing​(HoglinEntity p_234394_0_)
      • piglinsOutnumberHoglins

        private static boolean piglinsOutnumberHoglins​(HoglinEntity p_234396_0_)
      • broadcastAttackTarget

        private static void broadcastAttackTarget​(HoglinEntity p_234399_0_,
                                                  LivingEntity p_234399_1_)
      • setAttackTargetIfCloserThanCurrent

        private static void setAttackTargetIfCloserThanCurrent​(HoglinEntity p_234401_0_,
                                                               LivingEntity p_234401_1_)
      • getSoundForCurrentActivity

        public static java.util.Optional<SoundEvent> getSoundForCurrentActivity​(HoglinEntity p_234398_0_)
      • getVisibleAdultHoglins

        private static java.util.List<HoglinEntity> getVisibleAdultHoglins​(HoglinEntity p_234400_0_)
      • isNearRepellent

        private static boolean isNearRepellent​(HoglinEntity p_241416_0_)
      • isBreeding

        private static boolean isBreeding​(HoglinEntity p_234402_0_)
      • isPacified

        protected static boolean isPacified​(HoglinEntity p_234386_0_)