Class AbilityActivateEvent

java.lang.Object
org.bukkit.event.Event
wtf.nucker.kitpvpplus.api.events.AbilityActivateEvent

public class AbilityActivateEvent extends org.bukkit.event.Event
  • Nested Class Summary

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

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

    Constructors
    Constructor
    Description
    AbilityActivateEvent​(Ability ability, org.bukkit.inventory.ItemStack item, org.bukkit.event.player.PlayerInteractEvent interactEvent)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    static org.bukkit.event.HandlerList
     
    org.bukkit.event.HandlerList
     
    org.bukkit.event.player.PlayerInteractEvent
     
    org.bukkit.inventory.ItemStack
     
    org.bukkit.entity.Player
     

    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

    • AbilityActivateEvent

      public AbilityActivateEvent(Ability ability, org.bukkit.inventory.ItemStack item, org.bukkit.event.player.PlayerInteractEvent interactEvent)
  • Method Details

    • getItem

      public org.bukkit.inventory.ItemStack getItem()
      Returns:
      instance of the item the used for the ability
    • getAbility

      public Ability getAbility()
      Returns:
      instance of the ability
    • getInteractEvent

      public org.bukkit.event.player.PlayerInteractEvent getInteractEvent()
      Returns:
      the interact event that initially called the event
    • getPlayer

      public org.bukkit.entity.Player getPlayer()
      Returns:
      the player who activated the event
    • getHandlerList

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

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