diff options
| author | Unknown <shekwancheung0528@gmail.com> | 2019-02-03 21:15:22 +0800 |
|---|---|---|
| committer | Unknown <shekwancheung0528@gmail.com> | 2019-02-03 21:15:22 +0800 |
| commit | 074a627663e0150e23d47a87486afb852dd2cfdd (patch) | |
| tree | 0b030485400ed6f03c41b791018ef0c00229b80f /src/main/java/me/shedaniel/rei/update/UpdatePriority.java | |
| parent | b7abefc2eca79112a2bcc4c1be0629be2f17fb91 (diff) | |
| download | RoughlyEnoughItems-2.2.0.16.tar.gz RoughlyEnoughItems-2.2.0.16.tar.bz2 RoughlyEnoughItems-2.2.0.16.zip | |
Version Checker + Mirror REI + Fix Bugsv2.2.0.16
Diffstat (limited to 'src/main/java/me/shedaniel/rei/update/UpdatePriority.java')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/update/UpdatePriority.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/main/java/me/shedaniel/rei/update/UpdatePriority.java b/src/main/java/me/shedaniel/rei/update/UpdatePriority.java new file mode 100644 index 000000000..433cf2fca --- /dev/null +++ b/src/main/java/me/shedaniel/rei/update/UpdatePriority.java @@ -0,0 +1,13 @@ +package me.shedaniel.rei.update; + +import java.util.Arrays; + +public enum UpdatePriority { + + NONE, LIGHT, NORMAL, USEFUL, IMPORTANT; + + public static UpdatePriority fromString(String string) { + return Arrays.stream(values()).filter(updatePriority -> updatePriority.name().toLowerCase().equals(string)).findFirst().orElse(NONE); + } + +} |
