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 TypeMethodDescriptionvoidactivate()Activates the skill slot, casting the hovered itemvoidinit(PlayerData data) Initializes the skill slot for the given playervoidnext()Cycles to the next skillvoidprev()Cycles to the previous skillvoidsetHovering(boolean hovering) voidunlock(PlayerSkill skill) Adds a skill to the available skills, if castablevoidupdateItem(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)
-