Class RangedAttackGoal

java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.RangedAttackGoal
Direct Known Subclasses:
Drowned.DrownedTridentAttackGoal

public class RangedAttackGoal extends Goal
  • Field Details

    • mob

      private final Mob mob
    • rangedAttackMob

      private final RangedAttackMob rangedAttackMob
    • target

      @Nullable private LivingEntity target
    • attackTime

      private int attackTime
    • speedModifier

      private final double speedModifier
    • seeTime

      private int seeTime
    • attackIntervalMin

      private final int attackIntervalMin
    • attackIntervalMax

      private final int attackIntervalMax
    • attackRadius

      private final float attackRadius
    • attackRadiusSqr

      private final float attackRadiusSqr
  • Constructor Details

    • RangedAttackGoal

      public RangedAttackGoal(RangedAttackMob p_25768_, double p_25769_, int p_25770_, float p_25771_)
    • RangedAttackGoal

      public RangedAttackGoal(RangedAttackMob p_25773_, double p_25774_, int p_25775_, int p_25776_, float p_25777_)
  • Method Details

    • canUse

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

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

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

      public boolean requiresUpdateEveryTick()
      Overrides:
      requiresUpdateEveryTick in class Goal
    • tick

      public void tick()
      Overrides:
      tick in class Goal