aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/de/hysky/skyblocker/utils/Utils.java
diff options
context:
space:
mode:
authorKevinthegreat <92656833+kevinthegreat1@users.noreply.github.com>2023-09-24 00:13:12 -0400
committerKevinthegreat <92656833+kevinthegreat1@users.noreply.github.com>2023-10-22 23:20:33 -0400
commit27b4bdb40ecf0d2e95616b6bf431b7948bc5bdc7 (patch)
tree4c6b0234bd9e1dd84e69528864dd02fad3f997d4 /src/main/java/de/hysky/skyblocker/utils/Utils.java
parent5c4a157ab740337a10756f7ccf59273288bb3376 (diff)
downloadSkyblocker-27b4bdb40ecf0d2e95616b6bf431b7948bc5bdc7.tar.gz
Skyblocker-27b4bdb40ecf0d2e95616b6bf431b7948bc5bdc7.tar.bz2
Skyblocker-27b4bdb40ecf0d2e95616b6bf431b7948bc5bdc7.zip
Add MythologicalRitual
Diffstat (limited to 'src/main/java/de/hysky/skyblocker/utils/Utils.java')
-rw-r--r--src/main/java/de/hysky/skyblocker/utils/Utils.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/java/de/hysky/skyblocker/utils/Utils.java b/src/main/java/de/hysky/skyblocker/utils/Utils.java
index c1b4223f..bbfd1101 100644
--- a/src/main/java/de/hysky/skyblocker/utils/Utils.java
+++ b/src/main/java/de/hysky/skyblocker/utils/Utils.java
@@ -19,6 +19,7 @@ import net.minecraft.client.network.PlayerListEntry;
import net.minecraft.scoreboard.*;
import net.minecraft.text.Text;
import net.minecraft.util.Formatting;
+import org.jetbrains.annotations.NotNull;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -40,10 +41,15 @@ public class Utils {
* The following fields store data returned from /locraw: {@link #profile}, {@link #server}, {@link #gameType}, {@link #locationRaw}, and {@link #map}.
*/
@SuppressWarnings("JavadocDeclaration")
+ @NotNull
private static String profile = "";
+ @NotNull
private static String server = "";
+ @NotNull
private static String gameType = "";
+ @NotNull
private static String locationRaw = "";
+ @NotNull
private static String map = "";
private static long clientWorldJoinTime = 0;
private static boolean sentLocRaw = false;
@@ -78,6 +84,7 @@ public class Utils {
/**
* @return the profile parsed from the player list.
*/
+ @NotNull
public static String getProfile() {
return profile;
}
@@ -85,6 +92,7 @@ public class Utils {
/**
* @return the server parsed from /locraw.
*/
+ @NotNull
public static String getServer() {
return server;
}
@@ -92,6 +100,7 @@ public class Utils {
/**
* @return the game type parsed from /locraw.
*/
+ @NotNull
public static String getGameType() {
return gameType;
}
@@ -99,6 +108,7 @@ public class Utils {
/**
* @return the location raw parsed from /locraw.
*/
+ @NotNull
public static String getLocationRaw() {
return locationRaw;
}
@@ -106,6 +116,7 @@ public class Utils {
/**
* @return the map parsed from /locraw.
*/
+ @NotNull
public static String getMap() {
return map;
}