Class LookAtGoal

java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.LookAtGoal
Direct Known Subclasses:
FoxEntity.WatchGoal, LookAtCustomerGoal, LookAtWithoutMovingGoal, PandaEntity.WatchGoal

public class LookAtGoal extends Goal
  • Field Details

    • mob

      protected final MobEntity mob
    • lookAt

      protected Entity lookAt
    • lookDistance

      protected final float lookDistance
    • lookTime

      private int lookTime
    • probability

      protected final float probability
    • lookAtType

      protected final Class<? extends LivingEntity> lookAtType
    • lookAtContext

      protected final EntityPredicate lookAtContext
  • Constructor Details

  • Method Details

    • canUse

      public boolean canUse()
      Specified by:
      canUse in class Goal
    • canContinueToUse

      public boolean canContinueToUse()
      Overrides:
      canContinueToUse in class Goal
    • start

      public void start()
      Overrides:
      start in class Goal
    • stop

      public void stop()
      Overrides:
      stop in class Goal
    • tick

      public void tick()
      Overrides:
      tick in class Goal