Class LookAroundGoal

java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.LookAroundGoal

public class LookAroundGoal extends Goal
Mappings:
Namespace Name
official bnk
intermediary net/minecraft/class_1376
named net/minecraft/entity/ai/goal/LookAroundGoal
  • Field Details

    • mob

      private final MobEntity mob
      Mappings:
      Namespace Name Mixin selector
      official a Lbnk;a:Lbfv;
      intermediary field_6556 Lnet/minecraft/class_1376;field_6556:Lnet/minecraft/class_1308;
      named mob Lnet/minecraft/entity/ai/goal/LookAroundGoal;mob:Lnet/minecraft/entity/mob/MobEntity;
    • deltaX

      private double deltaX
      Mappings:
      Namespace Name Mixin selector
      official b Lbnk;b:D
      intermediary field_6554 Lnet/minecraft/class_1376;field_6554:D
      named deltaX Lnet/minecraft/entity/ai/goal/LookAroundGoal;deltaX:D
    • deltaZ

      private double deltaZ
      Mappings:
      Namespace Name Mixin selector
      official c Lbnk;c:D
      intermediary field_6553 Lnet/minecraft/class_1376;field_6553:D
      named deltaZ Lnet/minecraft/entity/ai/goal/LookAroundGoal;deltaZ:D
    • lookTime

      private int lookTime
      Mappings:
      Namespace Name Mixin selector
      official d Lbnk;d:I
      intermediary field_6555 Lnet/minecraft/class_1376;field_6555:I
      named lookTime Lnet/minecraft/entity/ai/goal/LookAroundGoal;lookTime:I
  • Constructor Details

    • LookAroundGoal

      public LookAroundGoal(MobEntity mob)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbnk;<init>(Lbfv;)V
      intermediary <init> Lnet/minecraft/class_1376;<init>(Lnet/minecraft/class_1308;)V
      named <init> Lnet/minecraft/entity/ai/goal/LookAroundGoal;<init>(Lnet/minecraft/entity/mob/MobEntity;)V
  • Method Details

    • canStart

      public boolean canStart()
      Specified by:
      canStart in class Goal
      Mappings:
      Namespace Name Mixin selector
      official a Lbmp;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 Lbmp;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 Lbmp;c()V
      intermediary method_6269 Lnet/minecraft/class_1352;method_6269()V
      named start Lnet/minecraft/entity/ai/goal/Goal;start()V
    • shouldRunEveryTick

      public boolean shouldRunEveryTick()
      Returns if the goal should run every tick or not.

      This returns false by default. If this returns false, the goal will tick once after the entity is spawned, and will tick every other tick.

      Overrides:
      shouldRunEveryTick in class Goal
      Returns:
      if the goal should run every tick or not
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official J_ Lbmp;J_()Z
      intermediary method_38846 Lnet/minecraft/class_1352;method_38846()Z
      named shouldRunEveryTick Lnet/minecraft/entity/ai/goal/Goal;shouldRunEveryTick()Z
    • tick

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