Class TrackTargetGoal

java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.TrackTargetGoal
Direct Known Subclasses:
AttackWithOwnerGoal, FollowTargetGoal, RevengeGoal, TrackIronGolemTargetGoal, TrackOwnerAttackerGoal, TraderLlamaEntity.DefendTraderGoal, VexEntity.TrackOwnerTargetGoal

public abstract class TrackTargetGoal extends Goal
Mappings:
Namespace Name
official bbn
intermediary net/minecraft/class_1405
named net/minecraft/entity/ai/goal/TrackTargetGoal
  • Field Details

    • UNSET

      private static final int UNSET
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbbn;a:I
      intermediary field_30233 Lnet/minecraft/class_1405;field_30233:I
      named UNSET Lnet/minecraft/entity/ai/goal/TrackTargetGoal;UNSET:I
    • CAN_TRACK

      private static final int CAN_TRACK
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lbbn;b:I
      intermediary field_30234 Lnet/minecraft/class_1405;field_30234:I
      named CAN_TRACK Lnet/minecraft/entity/ai/goal/TrackTargetGoal;CAN_TRACK:I
    • CANNOT_TRACK

      private static final int CANNOT_TRACK
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Lbbn;c:I
      intermediary field_30235 Lnet/minecraft/class_1405;field_30235:I
      named CANNOT_TRACK Lnet/minecraft/entity/ai/goal/TrackTargetGoal;CANNOT_TRACK:I
    • mob

      protected final MobEntity mob
      Mappings:
      Namespace Name Mixin selector
      official e Lbbn;e:Latv;
      intermediary field_6660 Lnet/minecraft/class_1405;field_6660:Lnet/minecraft/class_1308;
      named mob Lnet/minecraft/entity/ai/goal/TrackTargetGoal;mob:Lnet/minecraft/entity/mob/MobEntity;
    • checkVisibility

      protected final boolean checkVisibility
      Mappings:
      Namespace Name Mixin selector
      official f Lbbn;f:Z
      intermediary field_6658 Lnet/minecraft/class_1405;field_6658:Z
      named checkVisibility Lnet/minecraft/entity/ai/goal/TrackTargetGoal;checkVisibility:Z
    • checkCanNavigate

      private final boolean checkCanNavigate
      Mappings:
      Namespace Name Mixin selector
      official d Lbbn;d:Z
      intermediary field_6663 Lnet/minecraft/class_1405;field_6663:Z
      named checkCanNavigate Lnet/minecraft/entity/ai/goal/TrackTargetGoal;checkCanNavigate:Z
    • canNavigateFlag

      private int canNavigateFlag
      Mappings:
      Namespace Name Mixin selector
      official i Lbbn;i:I
      intermediary field_6662 Lnet/minecraft/class_1405;field_6662:I
      named canNavigateFlag Lnet/minecraft/entity/ai/goal/TrackTargetGoal;canNavigateFlag:I
    • checkCanNavigateCooldown

      private int checkCanNavigateCooldown
      Mappings:
      Namespace Name Mixin selector
      official j Lbbn;j:I
      intermediary field_6661 Lnet/minecraft/class_1405;field_6661:I
      named checkCanNavigateCooldown Lnet/minecraft/entity/ai/goal/TrackTargetGoal;checkCanNavigateCooldown:I
    • timeWithoutVisibility

      private int timeWithoutVisibility
      Mappings:
      Namespace Name Mixin selector
      official k Lbbn;k:I
      intermediary field_6659 Lnet/minecraft/class_1405;field_6659:I
      named timeWithoutVisibility Lnet/minecraft/entity/ai/goal/TrackTargetGoal;timeWithoutVisibility:I
    • target

      protected LivingEntity target
      Mappings:
      Namespace Name Mixin selector
      official g Lbbn;g:Latt;
      intermediary field_6664 Lnet/minecraft/class_1405;field_6664:Lnet/minecraft/class_1309;
      named target Lnet/minecraft/entity/ai/goal/TrackTargetGoal;target:Lnet/minecraft/entity/LivingEntity;
    • maxTimeWithoutVisibility

      protected int maxTimeWithoutVisibility
      Mappings:
      Namespace Name Mixin selector
      official h Lbbn;h:I
      intermediary field_6657 Lnet/minecraft/class_1405;field_6657:I
      named maxTimeWithoutVisibility Lnet/minecraft/entity/ai/goal/TrackTargetGoal;maxTimeWithoutVisibility:I
  • Constructor Details

    • TrackTargetGoal

      public TrackTargetGoal(MobEntity mob, boolean checkVisibility)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbbn;<init>(Latv;Z)V
      intermediary <init> Lnet/minecraft/class_1405;<init>(Lnet/minecraft/class_1308;Z)V
      named <init> Lnet/minecraft/entity/ai/goal/TrackTargetGoal;<init>(Lnet/minecraft/entity/mob/MobEntity;Z)V
    • TrackTargetGoal

      public TrackTargetGoal(MobEntity mob, boolean checkVisibility, boolean checkNavigable)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbbn;<init>(Latv;ZZ)V
      intermediary <init> Lnet/minecraft/class_1405;<init>(Lnet/minecraft/class_1308;ZZ)V
      named <init> Lnet/minecraft/entity/ai/goal/TrackTargetGoal;<init>(Lnet/minecraft/entity/mob/MobEntity;ZZ)V
  • Method Details

    • shouldContinue

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

      protected double getFollowRange()
      Mappings:
      Namespace Name Mixin selector
      official k Lbbn;k()D
      intermediary method_6326 Lnet/minecraft/class_1405;method_6326()D
      named getFollowRange Lnet/minecraft/entity/ai/goal/TrackTargetGoal;getFollowRange()D
    • start

      public void start()
      Overrides:
      start in class Goal
      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
    • stop

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

      protected boolean canTrack(@Nullable @Nullable LivingEntity target, TargetPredicate targetPredicate)
      Mappings:
      Namespace Name Mixin selector
      official a Lbbn;a(Latt;Lbcz;)Z
      intermediary method_6328 Lnet/minecraft/class_1405;method_6328(Lnet/minecraft/class_1309;Lnet/minecraft/class_4051;)Z
      named canTrack Lnet/minecraft/entity/ai/goal/TrackTargetGoal;canTrack(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/ai/TargetPredicate;)Z
    • canNavigateToEntity

      private boolean canNavigateToEntity(LivingEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official a Lbbn;a(Latt;)Z
      intermediary method_6329 Lnet/minecraft/class_1405;method_6329(Lnet/minecraft/class_1309;)Z
      named canNavigateToEntity Lnet/minecraft/entity/ai/goal/TrackTargetGoal;canNavigateToEntity(Lnet/minecraft/entity/LivingEntity;)Z
    • setMaxTimeWithoutVisibility

      public TrackTargetGoal setMaxTimeWithoutVisibility(int time)
      Mappings:
      Namespace Name Mixin selector
      official a Lbbn;a(I)Lbbn;
      intermediary method_6330 Lnet/minecraft/class_1405;method_6330(I)Lnet/minecraft/class_1405;
      named setMaxTimeWithoutVisibility Lnet/minecraft/entity/ai/goal/TrackTargetGoal;setMaxTimeWithoutVisibility(I)Lnet/minecraft/entity/ai/goal/TrackTargetGoal;