aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/thatgravyboat/skyblockhud/location/ParkIslandHandler.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/thatgravyboat/skyblockhud/location/ParkIslandHandler.java')
-rw-r--r--src/main/java/com/thatgravyboat/skyblockhud/location/ParkIslandHandler.java38
1 files changed, 20 insertions, 18 deletions
diff --git a/src/main/java/com/thatgravyboat/skyblockhud/location/ParkIslandHandler.java b/src/main/java/com/thatgravyboat/skyblockhud/location/ParkIslandHandler.java
index 7fa0d19..5d5f756 100644
--- a/src/main/java/com/thatgravyboat/skyblockhud/location/ParkIslandHandler.java
+++ b/src/main/java/com/thatgravyboat/skyblockhud/location/ParkIslandHandler.java
@@ -4,26 +4,28 @@ import javax.annotation.Nullable;
public class ParkIslandHandler {
- private static boolean isRaining = false;
- private static String rainTime = "";
+ private static boolean isRaining = false;
+ private static String rainTime = "";
- public static void parseRain(@Nullable String tabLine) {
- if (tabLine == null) {
- isRaining = false;
- rainTime = "";
- } else if (tabLine.toLowerCase().contains("rain:")) {
- if (tabLine.toLowerCase().contains("no rain")) isRaining = false; else {
- rainTime = tabLine.toLowerCase().replace("rain:", "").replace(" ", "");
- isRaining = true;
- }
+ public static void parseRain(@Nullable String tabLine) {
+ if (tabLine == null) {
+ isRaining = false;
+ rainTime = "";
+ } else if (tabLine.toLowerCase().contains("rain:")) {
+ if (tabLine.toLowerCase().contains("no rain")) isRaining =
+ false; else {
+ rainTime =
+ tabLine.toLowerCase().replace("rain:", "").replace(" ", "");
+ isRaining = true;
+ }
+ }
}
- }
- public static String getRainTime() {
- return rainTime;
- }
+ public static String getRainTime() {
+ return rainTime;
+ }
- public static boolean isRaining() {
- return isRaining;
- }
+ public static boolean isRaining() {
+ return isRaining;
+ }
}