Class RangedShotgunAttackGoal<T extends net.minecraft.world.entity.PathfinderMob & net.minecraft.world.entity.monster.RangedAttackMob>

java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
tech.anonymoushacker1279.immersiveweapons.entity.ai.goal.RangedGunAttackGoal<T>
tech.anonymoushacker1279.immersiveweapons.entity.ai.goal.RangedShotgunAttackGoal<T>

public class RangedShotgunAttackGoal<T extends net.minecraft.world.entity.PathfinderMob & net.minecraft.world.entity.monster.RangedAttackMob> extends RangedGunAttackGoal<T>
  • Constructor Details

    • RangedShotgunAttackGoal

      public RangedShotgunAttackGoal(T mob, double moveSpeedAmpIn, int attackCooldownIn, float maxAttackDistanceIn, net.minecraft.world.item.Item gun)
  • Method Details

    • canUse

      public boolean canUse()
      Returns whether execution should begin. You can also read and cache any state necessary for execution in this method as well.
      Overrides:
      canUse in class RangedGunAttackGoal<T extends net.minecraft.world.entity.PathfinderMob & net.minecraft.world.entity.monster.RangedAttackMob>
      Returns:
      boolean