Class AbilityManager
java.lang.Object
org.woftnw.eof.AbilityManager
- All Implemented Interfaces:
org.bukkit.event.Listener
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgivePlayerAbilities(@NonNull org.bukkit.entity.Player player) Give a player their active ability items.voidonEntityDamageByEntity(@NonNull org.bukkit.event.entity.EntityDamageByEntityEvent event) voidonInventoryClick(@NonNull org.bukkit.event.inventory.InventoryClickEvent event) voidonPlayerInteract(@NonNull org.bukkit.event.player.PlayerInteractEvent event) voidputAbilityItemsInInventory(org.bukkit.entity.Player player, org.bukkit.inventory.Inventory inventory) voidregisterAbility(Ability ability) voidremoveAbilitiesFromInventory(@NonNull org.bukkit.inventory.Inventory inventory) Remove abilities from an inventory.
-
Constructor Details
-
AbilityManager
-
-
Method Details
-
registerAbility
-
givePlayerAbilities
Give a player their active ability items.- Parameters:
player- The player to give abilities to.- Throws:
NoTribeException
-
putAbilityItemsInInventory
public void putAbilityItemsInInventory(org.bukkit.entity.Player player, org.bukkit.inventory.Inventory inventory) throws NoTribeException - Throws:
NoTribeException
-
removeAbilitiesFromInventory
public void removeAbilitiesFromInventory(@NonNull org.bukkit.inventory.Inventory inventory) Remove abilities from an inventory.- Parameters:
inventory- The inventory to remove ability items from.
-
onPlayerInteract
public void onPlayerInteract(@NonNull org.bukkit.event.player.PlayerInteractEvent event) -
onEntityDamageByEntity
public void onEntityDamageByEntity(@NonNull org.bukkit.event.entity.EntityDamageByEntityEvent event) -
onInventoryClick
public void onInventoryClick(@NonNull org.bukkit.event.inventory.InventoryClickEvent event)
-