Class Ability

java.lang.Object
wtf.nucker.kitpvpplus.api.objects.Ability

public abstract class Ability extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    Ability​(String id, org.bukkit.inventory.ItemStack abilityItem)
    Used to create a custom ability
  • Method Summary

    Modifier and Type
    Method
    Description
    org.bukkit.inventory.ItemStack
     
     
    abstract void
    onActivate​(org.bukkit.inventory.ItemStack item, Ability ability, org.bukkit.event.player.PlayerInteractEvent event)
     

    Methods inherited from class java.lang.Object

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

    • Ability

      public Ability(String id, org.bukkit.inventory.ItemStack abilityItem)
      Used to create a custom ability
      Parameters:
      id - The id of your ability (MUST BE UNIQUE)
      abilityItem - the item your ability is based off of
  • Method Details

    • onActivate

      public abstract void onActivate(org.bukkit.inventory.ItemStack item, Ability ability, org.bukkit.event.player.PlayerInteractEvent event)
    • getId

      public String getId()
      Returns:
      the id of the ability
    • getAbilityItem

      public org.bukkit.inventory.ItemStack getAbilityItem()
      Returns:
      the item of the ability