Class PlayerSkillSlot
java.lang.Object
studio.magemonkey.fabled.api.player.PlayerSkillSlot
Handles the skill slot for casting when bars are disabled
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
activate()
Activates the skill slot, casting the hovered itemvoid
init
(PlayerData data) Initializes the skill slot for the given playervoid
next()
Cycles to the next skillvoid
prev()
Cycles to the previous skillvoid
setHovering
(boolean hovering) void
unlock
(PlayerSkill skill) Adds a skill to the available skills, if castablevoid
updateItem
(org.bukkit.entity.Player player) Updates the displayed item for the player
-
Constructor Details
-
PlayerSkillSlot
public PlayerSkillSlot()
-
-
Method Details
-
init
Initializes the skill slot for the given player- Parameters:
data
- data of the player
-
unlock
Adds a skill to the available skills, if castable- Parameters:
skill
- skill to add
-
updateItem
public void updateItem(org.bukkit.entity.Player player) Updates the displayed item for the player- Parameters:
player
- player to update for
-
activate
public void activate()Activates the skill slot, casting the hovered item -
next
public void next()Cycles to the next skill -
prev
public void prev()Cycles to the previous skill -
setHovering
public void setHovering(boolean hovering)
-