Interface Level


  • public interface Level
    • Method Summary

      Modifier and Type Method Description
      void addXp​(org.bukkit.entity.Player player, int xp, PlayerXpGainEvent.XpSource source)
      Add some xp to target player.
      int getCurrentXp​(org.bukkit.entity.Player p)  
      java.lang.String getCurrentXpFormatted​(org.bukkit.entity.Player p)  
      java.lang.String getLevel​(org.bukkit.entity.Player p)  
      int getPlayerLevel​(org.bukkit.entity.Player p)  
      java.lang.String getProgressBar​(org.bukkit.entity.Player p)  
      int getRequiredXp​(org.bukkit.entity.Player p)  
      java.lang.String getRequiredXpFormatted​(org.bukkit.entity.Player p)
      Get required xp as string.
      void setLevel​(org.bukkit.entity.Player player, int level)
      Set player level.
      void setXp​(org.bukkit.entity.Player player, int currentXp)
      Set player xp.
    • Method Detail

      • getLevel

        java.lang.String getLevel​(org.bukkit.entity.Player p)
        Returns:
        current player level formatted as string.
      • getPlayerLevel

        int getPlayerLevel​(org.bukkit.entity.Player p)
        Returns:
        current player level as number.
      • getRequiredXpFormatted

        java.lang.String getRequiredXpFormatted​(org.bukkit.entity.Player p)
        Get required xp as string. 2000 - 2k
        Returns:
        required xp for next level.
      • getProgressBar

        java.lang.String getProgressBar​(org.bukkit.entity.Player p)
        Returns:
        current progress bar.
      • getCurrentXp

        int getCurrentXp​(org.bukkit.entity.Player p)
        Returns:
        current xp.
      • getCurrentXpFormatted

        java.lang.String getCurrentXpFormatted​(org.bukkit.entity.Player p)
        Returns:
        current xp formatted.
      • getRequiredXp

        int getRequiredXp​(org.bukkit.entity.Player p)
        Returns:
        required xp
      • addXp

        void addXp​(org.bukkit.entity.Player player,
                   int xp,
                   PlayerXpGainEvent.XpSource source)
        Add some xp to target player.
      • setXp

        void setXp​(org.bukkit.entity.Player player,
                   int currentXp)
        Set player xp.
      • setLevel

        void setLevel​(org.bukkit.entity.Player player,
                      int level)
        Set player level.