Class RangedCrossbowAttackGoal<T extends Monster & RangedAttackMob & CrossbowAttackMob>

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

public class RangedCrossbowAttackGoal<T extends Monster & RangedAttackMob & CrossbowAttackMob> extends Goal
  • Field Details

    • PATHFINDING_DELAY_RANGE

      public static final UniformInt PATHFINDING_DELAY_RANGE
    • mob

      private final T extends Monster & RangedAttackMob & CrossbowAttackMob mob
    • crossbowState

    • speedModifier

      private final double speedModifier
    • attackRadiusSqr

      private final float attackRadiusSqr
    • seeTime

      private int seeTime
    • attackDelay

      private int attackDelay
    • updatePathDelay

      private int updatePathDelay
  • Constructor Details

    • RangedCrossbowAttackGoal

      public RangedCrossbowAttackGoal(T p_25814_, double p_25815_, float p_25816_)
  • Method Details

    • canUse

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

      private boolean isHoldingCrossbow()
    • canContinueToUse

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

      private boolean isValidTarget()
    • stop

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

      public void tick()
      Overrides:
      tick in class Goal
    • canRun

      private boolean canRun()