Class LookAtEntityGoal

java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.LookAtEntityGoal
Direct Known Subclasses:
FoxEntity.LookAtEntityGoal, LookAtCustomerGoal, PandaEntity.LookAtEntityGoal, StopAndLookAtEntityGoal

public class LookAtEntityGoal extends Goal
Mappings:
Namespace Name
official bix
intermediary net/minecraft/class_1361
named net/minecraft/entity/ai/goal/LookAtEntityGoal
  • Field Details

    • DEFAULT_CHANCE

      public static final float DEFAULT_CHANCE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbix;a:F
      intermediary field_33760 Lnet/minecraft/class_1361;field_33760:F
      named DEFAULT_CHANCE Lnet/minecraft/entity/ai/goal/LookAtEntityGoal;DEFAULT_CHANCE:F
    • mob

      protected final MobEntity mob
      Mappings:
      Namespace Name Mixin selector
      official b Lbix;b:Lbce;
      intermediary field_6486 Lnet/minecraft/class_1361;field_6486:Lnet/minecraft/class_1308;
      named mob Lnet/minecraft/entity/ai/goal/LookAtEntityGoal;mob:Lnet/minecraft/entity/mob/MobEntity;
    • target

      @Nullable protected @Nullable Entity target
      Mappings:
      Namespace Name Mixin selector
      official c Lbix;c:Lbbn;
      intermediary field_6484 Lnet/minecraft/class_1361;field_6484:Lnet/minecraft/class_1297;
      named target Lnet/minecraft/entity/ai/goal/LookAtEntityGoal;target:Lnet/minecraft/entity/Entity;
    • range

      protected final float range
      Mappings:
      Namespace Name Mixin selector
      official d Lbix;d:F
      intermediary field_6482 Lnet/minecraft/class_1361;field_6482:F
      named range Lnet/minecraft/entity/ai/goal/LookAtEntityGoal;range:F
    • lookTime

      private int lookTime
      Mappings:
      Namespace Name Mixin selector
      official h Lbix;h:I
      intermediary field_6483 Lnet/minecraft/class_1361;field_6483:I
      named lookTime Lnet/minecraft/entity/ai/goal/LookAtEntityGoal;lookTime:I
    • chance

      protected final float chance
      Mappings:
      Namespace Name Mixin selector
      official e Lbix;e:F
      intermediary field_6481 Lnet/minecraft/class_1361;field_6481:F
      named chance Lnet/minecraft/entity/ai/goal/LookAtEntityGoal;chance:F
    • lookForward

      private final boolean lookForward
      Mappings:
      Namespace Name Mixin selector
      official i Lbix;i:Z
      intermediary field_33761 Lnet/minecraft/class_1361;field_33761:Z
      named lookForward Lnet/minecraft/entity/ai/goal/LookAtEntityGoal;lookForward:Z
    • targetType

      protected final Class<? extends LivingEntity> targetType
      Mappings:
      Namespace Name Mixin selector
      official f Lbix;f:Ljava/lang/Class;
      intermediary field_6485 Lnet/minecraft/class_1361;field_6485:Ljava/lang/Class;
      named targetType Lnet/minecraft/entity/ai/goal/LookAtEntityGoal;targetType:Ljava/lang/Class;
    • targetPredicate

      protected final TargetPredicate targetPredicate
      Mappings:
      Namespace Name Mixin selector
      official g Lbix;g:Lbmf;
      intermediary field_18087 Lnet/minecraft/class_1361;field_18087:Lnet/minecraft/class_4051;
      named targetPredicate Lnet/minecraft/entity/ai/goal/LookAtEntityGoal;targetPredicate:Lnet/minecraft/entity/ai/TargetPredicate;
  • Constructor Details

    • LookAtEntityGoal

      public LookAtEntityGoal(MobEntity mob, Class<? extends LivingEntity> targetType, float range)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbix;<init>(Lbce;Ljava/lang/Class;F)V
      intermediary <init> Lnet/minecraft/class_1361;<init>(Lnet/minecraft/class_1308;Ljava/lang/Class;F)V
      named <init> Lnet/minecraft/entity/ai/goal/LookAtEntityGoal;<init>(Lnet/minecraft/entity/mob/MobEntity;Ljava/lang/Class;F)V
    • LookAtEntityGoal

      public LookAtEntityGoal(MobEntity mob, Class<? extends LivingEntity> targetType, float range, float chance)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbix;<init>(Lbce;Ljava/lang/Class;FF)V
      intermediary <init> Lnet/minecraft/class_1361;<init>(Lnet/minecraft/class_1308;Ljava/lang/Class;FF)V
      named <init> Lnet/minecraft/entity/ai/goal/LookAtEntityGoal;<init>(Lnet/minecraft/entity/mob/MobEntity;Ljava/lang/Class;FF)V
    • LookAtEntityGoal

      public LookAtEntityGoal(MobEntity mob, Class<? extends LivingEntity> targetType, float range, float chance, boolean lookForward)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbix;<init>(Lbce;Ljava/lang/Class;FFZ)V
      intermediary <init> Lnet/minecraft/class_1361;<init>(Lnet/minecraft/class_1308;Ljava/lang/Class;FFZ)V
      named <init> Lnet/minecraft/entity/ai/goal/LookAtEntityGoal;<init>(Lnet/minecraft/entity/mob/MobEntity;Ljava/lang/Class;FFZ)V
  • Method Details

    • canStart

      public boolean canStart()
      Specified by:
      canStart in class Goal
      Mappings:
      Namespace Name Mixin selector
      official a Lbip;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 Lbip;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 Lbip;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 Lbip;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 Lbip;e()V
      intermediary method_6268 Lnet/minecraft/class_1352;method_6268()V
      named tick Lnet/minecraft/entity/ai/goal/Goal;tick()V