Class PlayerSkillUpgradeEvent

java.lang.Object
org.bukkit.event.Event
studio.magemonkey.fabled.api.event.PlayerSkillUpgradeEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class PlayerSkillUpgradeEvent extends org.bukkit.event.Event implements org.bukkit.event.Cancellable
Event called when a player upgrades a skill
  • Constructor Details

    • PlayerSkillUpgradeEvent

      public PlayerSkillUpgradeEvent(PlayerData playerData, PlayerSkill upgradedSkill, int cost)
      Constructor
      Parameters:
      playerData - data of the player upgrading the skill
      upgradedSkill - the skill that was upgraded
      cost - the cost for the upgrade
  • Method Details

    • getPlayerData

      public PlayerData getPlayerData()
      Returns:
      data of the player unlocking the skill
    • getUpgradedSkill

      public PlayerSkill getUpgradedSkill()
      Returns:
      skill that was unlocked
    • getCost

      public int getCost()
      Returns:
      cost of the upgrade
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
      Returns:
      true if cancelled, false otherwise
    • setCancelled

      public void setCancelled(boolean value)
      Sets whether the event is cancelled
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable
      Parameters:
      value - true if cancelled, false otherwise
    • getHandlers

      public org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
      Returns:
      gets the handlers for the event
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
      Returns:
      gets the handlers for the event