Class LevellingUtilities

Object
LevellingUtilities

public class LevellingUtilities extends Object
  • Method Details

    • getLevelExperienceRequirement

      public static Long getLevelExperienceRequirement(Integer level)
      Parameters:
      level - the level of which to return how much experience points are needed.
      Returns:
      how many experience points are neeeded?
    • getLevel

      public static Integer getLevel(Long totalExperience)
      Returns the level based on total experience.
      Parameters:
      totalExperience - the total amount of experience gained.
      Returns:
      the level appropriate to this.
    • getExperience

      public static Long getExperience(Long totalExperience)
      Returns the amount of experience gained for the current level.
      Parameters:
      totalExperience - the total amount of experience gained.
      Returns:
      the amount of experience gained for the current level.
    • getExperienceLeftUntilFollowingLevel

      public static Long getExperienceLeftUntilFollowingLevel(Long totalExperience)