Class FollowTargetGoal<T extends LivingEntity>

Direct Known Subclasses:
BeeEntity.BeeFollowTargetGoal, DisableableFollowTargetGoal, EndermanEntity.TeleportTowardsPlayerGoal, FollowTargetIfTamedGoal, FoxEntity.DefendFriendGoal, LlamaEntity.ChaseWolvesGoal, PolarBearEntity.FollowPlayersGoal, RaidGoal, ShulkerEntity.SearchForPlayerGoal, ShulkerEntity.SearchForTargetGoal, SpiderEntity.FollowTargetGoal, VindicatorEntity.FollowEntityGoal

public class FollowTargetGoal<T extends LivingEntity> extends TrackTargetGoal
Mappings:
Namespace Name
official bbg
intermediary net/minecraft/class_1400
named net/minecraft/entity/ai/goal/FollowTargetGoal
  • Field Details

    • targetClass

      protected final Class<T extends LivingEntity> targetClass
      Mappings:
      Namespace Name Mixin selector
      official a Lbbg;a:Ljava/lang/Class;
      intermediary field_6643 Lnet/minecraft/class_1400;field_6643:Ljava/lang/Class;
      named targetClass Lnet/minecraft/entity/ai/goal/FollowTargetGoal;targetClass:Ljava/lang/Class;
    • reciprocalChance

      protected final int reciprocalChance
      Mappings:
      Namespace Name Mixin selector
      official b Lbbg;b:I
      intermediary field_6641 Lnet/minecraft/class_1400;field_6641:I
      named reciprocalChance Lnet/minecraft/entity/ai/goal/FollowTargetGoal;reciprocalChance:I
    • targetEntity

      protected LivingEntity targetEntity
      Mappings:
      Namespace Name Mixin selector
      official c Lbbg;c:Latt;
      intermediary field_6644 Lnet/minecraft/class_1400;field_6644:Lnet/minecraft/class_1309;
      named targetEntity Lnet/minecraft/entity/ai/goal/FollowTargetGoal;targetEntity:Lnet/minecraft/entity/LivingEntity;
    • targetPredicate

      protected TargetPredicate targetPredicate
      Mappings:
      Namespace Name Mixin selector
      official d Lbbg;d:Lbcz;
      intermediary field_6642 Lnet/minecraft/class_1400;field_6642:Lnet/minecraft/class_4051;
      named targetPredicate Lnet/minecraft/entity/ai/goal/FollowTargetGoal;targetPredicate:Lnet/minecraft/entity/ai/TargetPredicate;
  • Constructor Details

    • FollowTargetGoal

      public FollowTargetGoal(MobEntity mob, Class<T> targetClass, boolean checkVisibility)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbbg;<init>(Latv;Ljava/lang/Class;Z)V
      intermediary <init> Lnet/minecraft/class_1400;<init>(Lnet/minecraft/class_1308;Ljava/lang/Class;Z)V
      named <init> Lnet/minecraft/entity/ai/goal/FollowTargetGoal;<init>(Lnet/minecraft/entity/mob/MobEntity;Ljava/lang/Class;Z)V
    • FollowTargetGoal

      public FollowTargetGoal(MobEntity mob, Class<T> targetClass, boolean checkVisibility, boolean checkCanNavigate)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbbg;<init>(Latv;Ljava/lang/Class;ZZ)V
      intermediary <init> Lnet/minecraft/class_1400;<init>(Lnet/minecraft/class_1308;Ljava/lang/Class;ZZ)V
      named <init> Lnet/minecraft/entity/ai/goal/FollowTargetGoal;<init>(Lnet/minecraft/entity/mob/MobEntity;Ljava/lang/Class;ZZ)V
    • FollowTargetGoal

      public FollowTargetGoal(MobEntity mob, Class<T> targetClass, int reciprocalChance, boolean checkVisibility, boolean checkCanNavigate, @Nullable @Nullable Predicate<LivingEntity> targetPredicate)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbbg;<init>(Latv;Ljava/lang/Class;IZZLjava/util/function/Predicate;)V
      intermediary <init> Lnet/minecraft/class_1400;<init>(Lnet/minecraft/class_1308;Ljava/lang/Class;IZZLjava/util/function/Predicate;)V
      named <init> Lnet/minecraft/entity/ai/goal/FollowTargetGoal;<init>(Lnet/minecraft/entity/mob/MobEntity;Ljava/lang/Class;IZZLjava/util/function/Predicate;)V
  • Method Details

    • canStart

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

      protected Box getSearchBox(double distance)
      Mappings:
      Namespace Name Mixin selector
      official a Lbbg;a(D)Ldmv;
      intermediary method_6321 Lnet/minecraft/class_1400;method_6321(D)Lnet/minecraft/class_238;
      named getSearchBox Lnet/minecraft/entity/ai/goal/FollowTargetGoal;getSearchBox(D)Lnet/minecraft/util/math/Box;
    • findClosestTarget

      protected void findClosestTarget()
      Mappings:
      Namespace Name Mixin selector
      official g Lbbg;g()V
      intermediary method_18415 Lnet/minecraft/class_1400;method_18415()V
      named findClosestTarget Lnet/minecraft/entity/ai/goal/FollowTargetGoal;findClosestTarget()V
    • start

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

      public void setTargetEntity(@Nullable @Nullable LivingEntity targetEntity)
      Mappings:
      Namespace Name Mixin selector
      official a Lbbg;a(Latt;)V
      intermediary method_24632 Lnet/minecraft/class_1400;method_24632(Lnet/minecraft/class_1309;)V
      named setTargetEntity Lnet/minecraft/entity/ai/goal/FollowTargetGoal;setTargetEntity(Lnet/minecraft/entity/LivingEntity;)V