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 bzh
  • 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 Lbzh;a:Lbtl;
    • 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 Lbzh;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 Lbzh;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 Lbzh;b:Lbtc;
    • 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 Lbzh;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 Lbzh;d:Leox;
    • 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 Lbzh;e:Lcco;
    • 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 Lbzh;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 Lbzh;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 Lbzh;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 Lbzh;k:Lcdt;
  • 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> Lbzh;<init>(Lbtl;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> Lbzh;<init>(Lbtl;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> Lbzh;<init>(Lbtl;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 a Lcaa;a()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 b Lcaa;b()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 c Lcaa;c()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 d Lcaa;d()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 e Lcaa;e()V