public abstract class Ability extends Object
| Constructor and Description |
|---|
Ability(String id,
org.bukkit.inventory.ItemStack abilityItem) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
decreaseItem(org.bukkit.inventory.ItemStack item)
Used for deacreasing the amount of the item by one
|
static Ability |
fromInstanceAbility(wtf.nucker.kitpvpplus.objects.Ability ability)
Used to transfer a plugin instance instance ability to a api instance ability
|
org.bukkit.inventory.ItemStack |
getAbilityItem() |
String |
getId() |
abstract void |
onActivate(org.bukkit.inventory.ItemStack item,
Ability ability,
org.bukkit.event.player.PlayerInteractEvent event) |
protected void |
putOnCooldown(org.bukkit.entity.Player player,
int amount)
Used for putting a player on cooldown (usually after they use the ability
|
static wtf.nucker.kitpvpplus.objects.Ability |
toInstanceAbility(Ability ability)
Used to transfer an ability to the ability class in the plugin instance
|
public Ability(String id, org.bukkit.inventory.ItemStack abilityItem)
public abstract void onActivate(org.bukkit.inventory.ItemStack item,
Ability ability,
org.bukkit.event.player.PlayerInteractEvent event)
public static wtf.nucker.kitpvpplus.objects.Ability toInstanceAbility(Ability ability)
ability - The API version of the ability you want to transferpublic static Ability fromInstanceAbility(wtf.nucker.kitpvpplus.objects.Ability ability)
ability - the plugin version of the abilitypublic String getId()
public org.bukkit.inventory.ItemStack getAbilityItem()
protected void decreaseItem(org.bukkit.inventory.ItemStack item)
item - the item you wan to decreaseprotected void putOnCooldown(org.bukkit.entity.Player player,
int amount)
player - the player your putting on cooldownamount - the amount of seconds till the cooldown endsCopyright © 2021. All rights reserved.