Class Ability
java.lang.Object
wtf.nucker.kitpvpplus.api.objects.Ability
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.inventory.ItemStack
getId()
abstract void
onActivate(org.bukkit.inventory.ItemStack item, Ability ability, org.bukkit.event.player.PlayerInteractEvent event)
-
Constructor Details
-
Ability
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
- Returns:
- the id of the ability
-
getAbilityItem
public org.bukkit.inventory.ItemStack getAbilityItem()- Returns:
- the item of the ability
-