levelFromTotalXP

public static int levelFromTotalXP(long totalXP)

Determines the current level based on total accumulated XP. This is the inverse of totalXPForLevel.

Return

The current level (minimum 1)

Parameters

totalXP

The total XP accumulated