Package wtf.nucker.kitpvpplus.api.events
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
ConstructorDescriptionAbilityActivateEvent(Ability ability, org.bukkit.inventory.ItemStack item, org.bukkit.event.player.PlayerInteractEvent interactEvent)
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
org.bukkit.event.player.PlayerInteractEvent
org.bukkit.inventory.ItemStack
getItem()
org.bukkit.entity.Player
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
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
- 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 classorg.bukkit.event.Event
-