Class NearestAttackableTargetGoal<T extends LivingEntity>

    • Field Detail

      • targetType

        protected final java.lang.Class<T extends LivingEntity> targetType
      • randomInterval

        protected final int randomInterval
    • Constructor Detail

      • NearestAttackableTargetGoal

        public NearestAttackableTargetGoal​(MobEntity p_i50313_1_,
                                           java.lang.Class<T> p_i50313_2_,
                                           boolean p_i50313_3_)
      • NearestAttackableTargetGoal

        public NearestAttackableTargetGoal​(MobEntity p_i50314_1_,
                                           java.lang.Class<T> p_i50314_2_,
                                           boolean p_i50314_3_,
                                           boolean p_i50314_4_)
      • NearestAttackableTargetGoal

        public NearestAttackableTargetGoal​(MobEntity p_i50315_1_,
                                           java.lang.Class<T> p_i50315_2_,
                                           int p_i50315_3_,
                                           boolean p_i50315_4_,
                                           boolean p_i50315_5_,
                                           @Nullable
                                           java.util.function.Predicate<LivingEntity> p_i50315_6_)
    • Method Detail

      • canUse

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

        protected AxisAlignedBB getTargetSearchArea​(double p_188511_1_)
      • findTarget

        protected void findTarget()
      • setTarget

        public void setTarget​(@Nullable
                              LivingEntity p_234054_1_)