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
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorsConstructorDescriptionPlayerSkillUpgradeEvent
(PlayerData playerData, PlayerSkill upgradedSkill, int cost) Constructor -
Method Summary
Modifier and TypeMethodDescriptionint
getCost()
static org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
boolean
void
setCancelled
(boolean value) Sets whether the event is cancelledMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
PlayerSkillUpgradeEvent
Constructor- Parameters:
playerData
- data of the player upgrading the skillupgradedSkill
- the skill that was upgradedcost
- the cost for the upgrade
-
-
Method Details
-
getPlayerData
- Returns:
- data of the player unlocking the skill
-
getUpgradedSkill
- Returns:
- skill that was unlocked
-
getCost
public int getCost()- Returns:
- cost of the upgrade
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceorg.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 interfaceorg.bukkit.event.Cancellable
- Parameters:
value
- true if cancelled, false otherwise
-
getHandlers
public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.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
-