Class PrepareWeaponShootEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.entity.EntityEvent
me.deecaad.weaponmechanics.weapon.weaponevents.WeaponEvent
me.deecaad.weaponmechanics.weapon.weaponevents.PrepareWeaponShootEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class PrepareWeaponShootEvent extends WeaponEvent implements org.bukkit.event.Cancellable
This event is called after WeaponPreShootEvent but right before WeaponShootEvent. This can be used to modify mechanics, projectile amount, etc.
  • Constructor Details

    • PrepareWeaponShootEvent

      public PrepareWeaponShootEvent(String weaponTitle, org.bukkit.inventory.ItemStack weaponStack, org.bukkit.entity.LivingEntity shooter, org.bukkit.inventory.EquipmentSlot hand, me.deecaad.core.mechanics.Mechanics shootMechanics, boolean resetFallDistance, Projectile projectile, double projectileSpeed, int projectileAmount)
  • Method Details

    • getShootMechanics

      public me.deecaad.core.mechanics.Mechanics getShootMechanics()
    • setShootMechanics

      public void setShootMechanics(me.deecaad.core.mechanics.Mechanics shootMechanics)
    • isResetFallDistance

      public boolean isResetFallDistance()
    • setResetFallDistance

      public void setResetFallDistance(boolean resetFallDistance)
    • getProjectile

      public Projectile getProjectile()
    • setProjectile

      public void setProjectile(Projectile projectile)
    • getProjectileSpeed

      public double getProjectileSpeed()
    • setProjectileSpeed

      public void setProjectileSpeed(double projectileSpeed)
    • getProjectileAmount

      public int getProjectileAmount()
    • setProjectileAmount

      public void setProjectileAmount(int projectileAmount)
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
    • setCancelled

      public void setCancelled(boolean cancel)
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable
    • getHandlers

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()