Class PlayerSkillDowngradeEvent
java.lang.Object
org.bukkit.event.Event
studio.magemonkey.fabled.api.event.PlayerSkillDowngradeEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public class PlayerSkillDowngradeEvent
extends org.bukkit.event.Event
implements org.bukkit.event.Cancellable
Event called when a player downgrades a skill
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorsConstructorDescriptionPlayerSkillDowngradeEvent
(PlayerData playerData, PlayerSkill downgradedSkill, int refund) Constructor -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
int
boolean
void
setCancelled
(boolean value) Sets whether the event is cancelledMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
PlayerSkillDowngradeEvent
Constructor- Parameters:
playerData
- data of the player downgrading the skilldowngradedSkill
- the skill that was downgradedrefund
- the amount of refunded skill points
-
-
Method Details
-
getPlayerData
- Returns:
- data of the player unlocking the skill
-
getDowngradedSkill
- Returns:
- skill that was unlocked
-
getRefund
public int getRefund()- Returns:
- amount of refunded points from the downgrade
-
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
-