Class AbilityManager

java.lang.Object
org.woftnw.eof.AbilityManager
All Implemented Interfaces:
org.bukkit.event.Listener

public class AbilityManager extends Object implements org.bukkit.event.Listener
  • Constructor Details

    • AbilityManager

      public AbilityManager(@NonNull ElytrasOfFire plugin)
  • Method Details

    • registerAbility

      public void registerAbility(Ability ability)
    • givePlayerAbilities

      public void givePlayerAbilities(@NonNull org.bukkit.entity.Player player) throws NoTribeException
      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)