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
named net/minecraft/entity/ai/goal/FleeEntityGoal
intermediary net/minecraft/class_1338
official cck
  • Field Details

    • mob

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

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

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

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

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

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

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

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

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

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

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

    • FleeEntityGoal

      public FleeEntityGoal(PathAwareEntity mob, Class<T> fleeFromType, float distance, double slowSpeed, double fastSpeed)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/ai/goal/FleeEntityGoal;<init>(Lnet/minecraft/entity/mob/PathAwareEntity;Ljava/lang/Class;FDD)V
      intermediary <init> Lnet/minecraft/class_1338;<init>(Lnet/minecraft/class_1314;Ljava/lang/Class;FDD)V
      official <init> Lcck;<init>(Lbwn;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
      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
      intermediary <init> Lnet/minecraft/class_1338;<init>(Lnet/minecraft/class_1314;Ljava/lang/Class;Ljava/util/function/Predicate;FDDLjava/util/function/Predicate;)V
      official <init> Lcck;<init>(Lbwn;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
      named <init> Lnet/minecraft/entity/ai/goal/FleeEntityGoal;<init>(Lnet/minecraft/entity/mob/PathAwareEntity;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
      official <init> Lcck;<init>(Lbwn;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
      named canStart Lnet/minecraft/entity/ai/goal/Goal;canStart()Z
      intermediary method_6264 Lnet/minecraft/class_1352;method_6264()Z
      official b Lcdd;b()Z
    • shouldContinue

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

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

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

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