Class FleeEntityGoal<T extends LivingEntity>

java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.FleeEntityGoal<T>
Direct Known Subclasses:
CatEntity.CatFleeGoal, OcelotEntity.FleeGoal, PandaEntity.PandaFleeGoal, RabbitEntity.FleeGoal, WolfEntity.AvoidLlamaGoal

public class FleeEntityGoal<T extends LivingEntity> extends Goal
Mappings:
Namespace Name
official bpi
intermediary net/minecraft/class_1338
named net/minecraft/entity/ai/goal/FleeEntityGoal
  • Field Details

    • mob

      protected final PathAwareEntity mob
      Mappings:
      Namespace Name Mixin selector
      official a Lbpi;a:Lbjp;
      intermediary field_6391 Lnet/minecraft/class_1338;field_6391:Lnet/minecraft/class_1314;
      named mob Lnet/minecraft/entity/ai/goal/FleeEntityGoal;mob:Lnet/minecraft/entity/mob/PathAwareEntity;
    • slowSpeed

      private final double slowSpeed
      Mappings:
      Namespace Name Mixin selector
      official i Lbpi;i:D
      intermediary field_6385 Lnet/minecraft/class_1338;field_6385:D
      named slowSpeed Lnet/minecraft/entity/ai/goal/FleeEntityGoal;slowSpeed:D
    • fastSpeed

      private final double fastSpeed
      Mappings:
      Namespace Name Mixin selector
      official j Lbpi;j:D
      intermediary field_6395 Lnet/minecraft/class_1338;field_6395:D
      named fastSpeed Lnet/minecraft/entity/ai/goal/FleeEntityGoal;fastSpeed:D
    • targetEntity

      @Nullable protected T extends LivingEntity targetEntity
      Mappings:
      Namespace Name Mixin selector
      official b Lbpi;b:Lbjg;
      intermediary field_6390 Lnet/minecraft/class_1338;field_6390:Lnet/minecraft/class_1309;
      named targetEntity Lnet/minecraft/entity/ai/goal/FleeEntityGoal;targetEntity:Lnet/minecraft/entity/LivingEntity;
    • fleeDistance

      protected final float fleeDistance
      Mappings:
      Namespace Name Mixin selector
      official c Lbpi;c:F
      intermediary field_6386 Lnet/minecraft/class_1338;field_6386:F
      named fleeDistance Lnet/minecraft/entity/ai/goal/FleeEntityGoal;fleeDistance:F
    • fleePath

      @Nullable protected @Nullable Path fleePath
      Mappings:
      Namespace Name Mixin selector
      official d Lbpi;d:Lebb;
      intermediary field_6387 Lnet/minecraft/class_1338;field_6387:Lnet/minecraft/class_11;
      named fleePath Lnet/minecraft/entity/ai/goal/FleeEntityGoal;fleePath:Lnet/minecraft/entity/ai/pathing/Path;
    • fleeingEntityNavigation

      protected final EntityNavigation fleeingEntityNavigation
      Mappings:
      Namespace Name Mixin selector
      official e Lbpi;e:Lbsp;
      intermediary field_6394 Lnet/minecraft/class_1338;field_6394:Lnet/minecraft/class_1408;
      named fleeingEntityNavigation Lnet/minecraft/entity/ai/goal/FleeEntityGoal;fleeingEntityNavigation:Lnet/minecraft/entity/ai/pathing/EntityNavigation;
    • classToFleeFrom

      protected final Class<T extends LivingEntity> classToFleeFrom
      Mappings:
      Namespace Name Mixin selector
      official f Lbpi;f:Ljava/lang/Class;
      intermediary field_6392 Lnet/minecraft/class_1338;field_6392:Ljava/lang/Class;
      named classToFleeFrom Lnet/minecraft/entity/ai/goal/FleeEntityGoal;classToFleeFrom:Ljava/lang/Class;
    • extraInclusionSelector

      protected final Predicate<LivingEntity> extraInclusionSelector
      Mappings:
      Namespace Name Mixin selector
      official g Lbpi;g:Ljava/util/function/Predicate;
      intermediary field_6393 Lnet/minecraft/class_1338;field_6393:Ljava/util/function/Predicate;
      named extraInclusionSelector Lnet/minecraft/entity/ai/goal/FleeEntityGoal;extraInclusionSelector:Ljava/util/function/Predicate;
    • inclusionSelector

      protected final Predicate<LivingEntity> inclusionSelector
      Mappings:
      Namespace Name Mixin selector
      official h Lbpi;h:Ljava/util/function/Predicate;
      intermediary field_6388 Lnet/minecraft/class_1338;field_6388:Ljava/util/function/Predicate;
      named inclusionSelector Lnet/minecraft/entity/ai/goal/FleeEntityGoal;inclusionSelector:Ljava/util/function/Predicate;
    • withinRangePredicate

      private final TargetPredicate withinRangePredicate
      Mappings:
      Namespace Name Mixin selector
      official k Lbpi;k:Lbts;
      intermediary field_18084 Lnet/minecraft/class_1338;field_18084:Lnet/minecraft/class_4051;
      named withinRangePredicate Lnet/minecraft/entity/ai/goal/FleeEntityGoal;withinRangePredicate:Lnet/minecraft/entity/ai/TargetPredicate;
  • Constructor Details

    • FleeEntityGoal

      public FleeEntityGoal(PathAwareEntity mob, Class<T> fleeFromType, float distance, double slowSpeed, double fastSpeed)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbpi;<init>(Lbjp;Ljava/lang/Class;FDD)V
      intermediary <init> Lnet/minecraft/class_1338;<init>(Lnet/minecraft/class_1314;Ljava/lang/Class;FDD)V
      named <init> Lnet/minecraft/entity/ai/goal/FleeEntityGoal;<init>(Lnet/minecraft/entity/mob/PathAwareEntity;Ljava/lang/Class;FDD)V
    • FleeEntityGoal

      public FleeEntityGoal(PathAwareEntity mob, Class<T> fleeFromType, Predicate<LivingEntity> extraInclusionSelector, float distance, double slowSpeed, double fastSpeed, Predicate<LivingEntity> inclusionSelector)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbpi;<init>(Lbjp;Ljava/lang/Class;Ljava/util/function/Predicate;FDDLjava/util/function/Predicate;)V
      intermediary <init> Lnet/minecraft/class_1338;<init>(Lnet/minecraft/class_1314;Ljava/lang/Class;Ljava/util/function/Predicate;FDDLjava/util/function/Predicate;)V
      named <init> Lnet/minecraft/entity/ai/goal/FleeEntityGoal;<init>(Lnet/minecraft/entity/mob/PathAwareEntity;Ljava/lang/Class;Ljava/util/function/Predicate;FDDLjava/util/function/Predicate;)V
    • FleeEntityGoal

      public FleeEntityGoal(PathAwareEntity fleeingEntity, Class<T> classToFleeFrom, float fleeDistance, double fleeSlowSpeed, double fleeFastSpeed, Predicate<LivingEntity> inclusionSelector)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbpi;<init>(Lbjp;Ljava/lang/Class;FDDLjava/util/function/Predicate;)V
      intermediary <init> Lnet/minecraft/class_1338;<init>(Lnet/minecraft/class_1314;Ljava/lang/Class;FDDLjava/util/function/Predicate;)V
      named <init> Lnet/minecraft/entity/ai/goal/FleeEntityGoal;<init>(Lnet/minecraft/entity/mob/PathAwareEntity;Ljava/lang/Class;FDDLjava/util/function/Predicate;)V
  • Method Details

    • canStart

      public boolean canStart()
      Specified by:
      canStart in class Goal
      Mappings:
      Namespace Name Mixin selector
      official a Lbqb;a()Z
      intermediary method_6264 Lnet/minecraft/class_1352;method_6264()Z
      named canStart Lnet/minecraft/entity/ai/goal/Goal;canStart()Z
    • shouldContinue

      public boolean shouldContinue()
      Overrides:
      shouldContinue in class Goal
      Mappings:
      Namespace Name Mixin selector
      official b Lbqb;b()Z
      intermediary method_6266 Lnet/minecraft/class_1352;method_6266()Z
      named shouldContinue Lnet/minecraft/entity/ai/goal/Goal;shouldContinue()Z
    • start

      public void start()
      Overrides:
      start in class Goal
      Mappings:
      Namespace Name Mixin selector
      official c Lbqb;c()V
      intermediary method_6269 Lnet/minecraft/class_1352;method_6269()V
      named start Lnet/minecraft/entity/ai/goal/Goal;start()V
    • stop

      public void stop()
      Overrides:
      stop in class Goal
      Mappings:
      Namespace Name Mixin selector
      official d Lbqb;d()V
      intermediary method_6270 Lnet/minecraft/class_1352;method_6270()V
      named stop Lnet/minecraft/entity/ai/goal/Goal;stop()V
    • tick

      public void tick()
      Overrides:
      tick in class Goal
      Mappings:
      Namespace Name Mixin selector
      official e Lbqb;e()V
      intermediary method_6268 Lnet/minecraft/class_1352;method_6268()V
      named tick Lnet/minecraft/entity/ai/goal/Goal;tick()V