Class AvoidEntityGoal<T extends LivingEntity>

    • Field Detail

      • walkSpeedModifier

        private final double walkSpeedModifier
      • sprintSpeedModifier

        private final double sprintSpeedModifier
      • maxDist

        protected final float maxDist
      • path

        protected Path path
      • avoidClass

        protected final java.lang.Class<T extends LivingEntity> avoidClass
      • avoidPredicate

        protected final java.util.function.Predicate<LivingEntity> avoidPredicate
      • predicateOnAvoidEntity

        protected final java.util.function.Predicate<LivingEntity> predicateOnAvoidEntity
    • Constructor Detail

      • AvoidEntityGoal

        public AvoidEntityGoal​(CreatureEntity p_i46404_1_,
                               java.lang.Class<T> p_i46404_2_,
                               float p_i46404_3_,
                               double p_i46404_4_,
                               double p_i46404_6_)
      • AvoidEntityGoal

        public AvoidEntityGoal​(CreatureEntity p_i48859_1_,
                               java.lang.Class<T> p_i48859_2_,
                               java.util.function.Predicate<LivingEntity> p_i48859_3_,
                               float p_i48859_4_,
                               double p_i48859_5_,
                               double p_i48859_7_,
                               java.util.function.Predicate<LivingEntity> p_i48859_9_)
      • AvoidEntityGoal

        public AvoidEntityGoal​(CreatureEntity p_i48860_1_,
                               java.lang.Class<T> p_i48860_2_,
                               float p_i48860_3_,
                               double p_i48860_4_,
                               double p_i48860_6_,
                               java.util.function.Predicate<LivingEntity> p_i48860_8_)
    • Method Detail

      • canUse

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

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

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

        public void tick()
        Overrides:
        tick in class Goal