Class RangedAttackGoal

java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.RangedAttackGoal
Direct Known Subclasses:
DrownedEntity.TridentAttackGoal

public class RangedAttackGoal extends Goal
  • Field Details

    • mob

      private final MobEntity mob
    • rangedAttackMob

      private final IRangedAttackMob rangedAttackMob
    • target

      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(IRangedAttackMob p_i1649_1_, double p_i1649_2_, int p_i1649_4_, float p_i1649_5_)
    • RangedAttackGoal

      public RangedAttackGoal(IRangedAttackMob p_i1650_1_, double p_i1650_2_, int p_i1650_4_, int p_i1650_5_, float p_i1650_6_)
  • 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
    • tick

      public void tick()
      Overrides:
      tick in class Goal