Class LookAtEntityGoal

java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
com.minecolonies.core.entity.ai.minimal.LookAtEntityGoal
Direct Known Subclasses:
LookAtEntityInteractGoal

public class LookAtEntityGoal extends net.minecraft.world.entity.ai.goal.Goal
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.goal.Goal

    net.minecraft.world.entity.ai.goal.Goal.Flag
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final float
     
    protected net.minecraft.world.entity.Entity
     
    protected final Class<? extends net.minecraft.world.entity.LivingEntity>
     
    protected final float
     
    protected final net.minecraft.world.entity.Mob
     
    protected final float
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    LookAtEntityGoal(net.minecraft.world.entity.Mob mob, Class<? extends net.minecraft.world.entity.LivingEntity> lookAtType, float lookDistance)
     
    LookAtEntityGoal(net.minecraft.world.entity.Mob mob, Class<? extends net.minecraft.world.entity.LivingEntity> lookAtType, float lookDistance, float probability)
     
    LookAtEntityGoal(net.minecraft.world.entity.Mob mob, Class<? extends net.minecraft.world.entity.LivingEntity> lookAtType, float lookDistance, float probability, boolean p_148122_)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    boolean
     
    void
     
    void
     
    void
     

    Methods inherited from class net.minecraft.world.entity.ai.goal.Goal

    adjustedTickDelay, getFlags, isInterruptable, reducedTickDelay, requiresUpdateEveryTick, setFlags, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • DEFAULT_PROBABILITY

      public static final float DEFAULT_PROBABILITY
      See Also:
    • mob

      protected final net.minecraft.world.entity.Mob mob
    • lookAt

      @Nullable protected net.minecraft.world.entity.Entity lookAt
    • lookDistance

      protected final float lookDistance
    • probability

      protected final float probability
    • lookAtType

      protected final Class<? extends net.minecraft.world.entity.LivingEntity> lookAtType
  • Constructor Details

    • LookAtEntityGoal

      public LookAtEntityGoal(net.minecraft.world.entity.Mob mob, Class<? extends net.minecraft.world.entity.LivingEntity> lookAtType, float lookDistance)
    • LookAtEntityGoal

      public LookAtEntityGoal(net.minecraft.world.entity.Mob mob, Class<? extends net.minecraft.world.entity.LivingEntity> lookAtType, float lookDistance, float probability)
    • LookAtEntityGoal

      public LookAtEntityGoal(net.minecraft.world.entity.Mob mob, Class<? extends net.minecraft.world.entity.LivingEntity> lookAtType, float lookDistance, float probability, boolean p_148122_)
  • Method Details

    • canUse

      public boolean canUse()
      Specified by:
      canUse in class net.minecraft.world.entity.ai.goal.Goal
    • canContinueToUse

      public boolean canContinueToUse()
      Overrides:
      canContinueToUse in class net.minecraft.world.entity.ai.goal.Goal
    • start

      public void start()
      Overrides:
      start in class net.minecraft.world.entity.ai.goal.Goal
    • stop

      public void stop()
      Overrides:
      stop in class net.minecraft.world.entity.ai.goal.Goal
    • tick

      public void tick()
      Overrides:
      tick in class net.minecraft.world.entity.ai.goal.Goal