Class RangedBowAttackGoal<T extends Mob & RangedAttackMob>

java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.RangedBowAttackGoal<T>

public class RangedBowAttackGoal<T extends Mob & RangedAttackMob> extends Goal
  • Field Details

    • mob

      private final T extends Mob & RangedAttackMob mob
    • speedModifier

      private final double speedModifier
    • attackIntervalMin

      private int attackIntervalMin
    • attackRadiusSqr

      private final float attackRadiusSqr
    • attackTime

      private int attackTime
    • seeTime

      private int seeTime
    • strafingClockwise

      private boolean strafingClockwise
    • strafingBackwards

      private boolean strafingBackwards
    • strafingTime

      private int strafingTime
  • Constructor Details

    • RangedBowAttackGoal

      public RangedBowAttackGoal(M p_25792_, double p_25793_, int p_25794_, float p_25795_)
    • RangedBowAttackGoal

      public RangedBowAttackGoal(T p_25792_, double p_25793_, int p_25794_, float p_25795_)
  • Method Details

    • setMinAttackInterval

      public void setMinAttackInterval(int p_25798_)
    • canUse

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

      protected boolean isHoldingBow()
    • 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