Class PlayerSkillSlot

java.lang.Object
studio.magemonkey.fabled.api.player.PlayerSkillSlot

public class PlayerSkillSlot extends Object
Handles the skill slot for casting when bars are disabled
  • Constructor Details

    • PlayerSkillSlot

      public PlayerSkillSlot()
  • Method Details

    • init

      public void init(PlayerData data)
      Initializes the skill slot for the given player
      Parameters:
      data - data of the player
    • unlock

      public void unlock(PlayerSkill skill)
      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)