aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/update/UpdatePriority.java
diff options
context:
space:
mode:
authorDaniel She <shekwancheung0528@gmail.com>2019-02-02 01:16:40 +0800
committerGitHub <noreply@github.com>2019-02-02 01:16:40 +0800
commit86c42f4dd2216504351b89e4e9cb99991e9c9dcd (patch)
treed7901ff656a67b4b3a3824acdc3b4acafde89909 /src/main/java/me/shedaniel/rei/update/UpdatePriority.java
parent3db5c8241fd69b3de88f59314613ea43440e09f4 (diff)
downloadRoughlyEnoughItems-86c42f4dd2216504351b89e4e9cb99991e9c9dcd.tar.gz
RoughlyEnoughItems-86c42f4dd2216504351b89e4e9cb99991e9c9dcd.tar.bz2
RoughlyEnoughItems-86c42f4dd2216504351b89e4e9cb99991e9c9dcd.zip
Update Checker (#25)
* WIP Update Checker (Not working) * Pushed this for testing * Working as intended
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);
+ }
+
+}