Class FullAutoTask

java.lang.Object
me.deecaad.weaponmechanics.weapon.shoot.FullAutoTask
All Implemented Interfaces:
Consumer<com.cjcrafter.foliascheduler.TaskImplementation<Void>>

public class FullAutoTask extends Object implements Consumer<com.cjcrafter.foliascheduler.TaskImplementation<Void>>
This task handles firing projectiles every N ticks. 1 of these tasks is created every time you start firing a fully automatic weapon. The task is cancelled when the user is no longer shooting.
  • Constructor Details

    • FullAutoTask

      public FullAutoTask(WeaponHandler weaponHandler, EntityWrapper entityWrapper, String weaponTitle, org.bukkit.inventory.ItemStack weaponStack, boolean mainHand, TriggerType triggerType, boolean dualWield, int shotsPerSecond)
  • Method Details

    • getEntityWrapper

      public EntityWrapper getEntityWrapper()
    • getHandData

      public HandData getHandData()
    • getRate

      public int getRate()
    • setRate

      public void setRate(int rate)
    • getPerShot

      public int getPerShot()
    • setPerShot

      public void setPerShot(int perShot)
    • getCurrentTick

      public int getCurrentTick()
    • setCurrentTick

      public void setCurrentTick(int currentTick)
    • accept

      public void accept(@NotNull com.cjcrafter.foliascheduler.TaskImplementation task)
      Specified by:
      accept in interface Consumer<com.cjcrafter.foliascheduler.TaskImplementation<Void>>