aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/update/UpdatePriority.java
diff options
context:
space:
mode:
authorUnknown <shekwancheung0528@gmail.com>2019-02-03 21:15:22 +0800
committerUnknown <shekwancheung0528@gmail.com>2019-02-03 21:15:22 +0800
commit074a627663e0150e23d47a87486afb852dd2cfdd (patch)
tree0b030485400ed6f03c41b791018ef0c00229b80f /src/main/java/me/shedaniel/rei/update/UpdatePriority.java
parentb7abefc2eca79112a2bcc4c1be0629be2f17fb91 (diff)
downloadRoughlyEnoughItems-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.java13
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);
+ }
+
+}