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
  • Field Details

    • mob

      protected final MobEntity mob
    • target

      protected Entity target
    • range

      protected final float range
    • lookTime

      private int lookTime
    • chance

      protected final float chance
    • targetType

      protected final Class<? extends LivingEntity> targetType
    • targetPredicate

      protected final TargetPredicate targetPredicate
  • Constructor Details

  • Method Details

    • canStart

      public boolean canStart()
      Specified by:
      canStart in class Goal
    • shouldContinue

      public boolean shouldContinue()
      Overrides:
      shouldContinue 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