MCPcopy Create free account
hub / github.com/VolmitSoftware/Adapt / getLevelProgress

Method getLevelProgress

src/main/java/com/volmit/adapt/api/xp/XP.java:87–90  ·  view source on GitHub ↗
(double xp)

Source from the content-addressed store, hash-verified

85 }
86
87 public static double getLevelProgress(double xp) {
88 double level = getLevelForXp(xp);
89 return level - (int) level;
90 }
91
92 public static double getXpForLevel(double level) {
93 return AdaptConfig.get().getXpCurve().getCurve().getXPForLevel(level);

Callers

nothing calls this directly

Calls 1

getLevelForXpMethod · 0.95

Tested by

no test coverage detected