Class AlchemicalArrowShootEvent

java.lang.Object
org.bukkit.event.Event
wtf.choco.arrows.api.event.AlchemicalArrowEvent
wtf.choco.arrows.api.event.AlchemicalArrowShootEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class AlchemicalArrowShootEvent
extends AlchemicalArrowEvent
implements org.bukkit.event.Cancellable
Called when an alchemical arrow has been shot.
Author:
Parker Hawke - Choco
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Constructor Summary

    Constructors
    Constructor Description
    AlchemicalArrowShootEvent​(@NotNull AlchemicalArrowEntity arrow, @NotNull org.bukkit.projectiles.ProjectileSource shooter)
    Construct a new AlchemicalArrowShootEvent
  • Method Summary

    Modifier and Type Method Description
    static org.bukkit.event.HandlerList getHandlerList()  
    org.bukkit.event.HandlerList getHandlers()  
    @NotNull org.bukkit.projectiles.ProjectileSource getShooter()
    Get the projectile source that launched this arrow
    boolean isCancelled()  
    void setCancelled​(boolean cancel)  

    Methods inherited from class wtf.choco.arrows.api.event.AlchemicalArrowEvent

    getArrow

    Methods inherited from class org.bukkit.event.Event

    getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AlchemicalArrowShootEvent

      public AlchemicalArrowShootEvent​(@NotNull @NotNull AlchemicalArrowEntity arrow, @NotNull @NotNull org.bukkit.projectiles.ProjectileSource shooter)
      Construct a new AlchemicalArrowShootEvent
      Parameters:
      arrow - the arrow that was shot
      shooter - the source of the arrow
  • Method Details

    • getShooter

      @NotNull public @NotNull org.bukkit.projectiles.ProjectileSource getShooter()
      Get the projectile source that launched this arrow
      Returns:
      the shooter
    • setCancelled

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

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

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

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