mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 23:27:59 +01:00
wip
This commit is contained in:
parent
1f767f0be3
commit
3792ca8c52
1 changed files with 3 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
||||||
package com.minelittlepony.unicopia.entity.player;
|
package com.minelittlepony.unicopia.entity.player;
|
||||||
|
|
||||||
import net.minecraft.text.Text;
|
import net.minecraft.text.Text;
|
||||||
|
import net.minecraft.util.math.MathHelper;
|
||||||
|
|
||||||
public enum ExperienceGroup {
|
public enum ExperienceGroup {
|
||||||
MAGICAL_KINDERGARTENER,
|
MAGICAL_KINDERGARTENER,
|
||||||
|
@ -26,7 +27,7 @@ public enum ExperienceGroup {
|
||||||
|
|
||||||
public static ExperienceGroup forLevel(int level) {
|
public static ExperienceGroup forLevel(int level) {
|
||||||
level /= 20;
|
level /= 20;
|
||||||
|
level = MathHelper.clamp(level, 0, values().length - 1);
|
||||||
return FRIENDSHIP_STUDENT;
|
return values()[level];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue