Package org.geysermc.floodgate.core.util
Class Utils
java.lang.Object
org.geysermc.floodgate.core.util.Utils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic UUIDfromShortUniqueId(String uuid) static StringgenerateCode(int length) static charstatic Stringstatic StringgetStackTrace(Throwable throwable) static booleanisFloodgateUniqueId(UUID uuid) static booleanisUniquePrefix(String prefix) static PropertiesreadProperties(String resourceFile) Reads a properties resource filestatic UUIDtoFloodgateUniqueId(long xuid) static UUIDtoFloodgateUniqueId(String xuid)
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
readProperties
Reads a properties resource file- Parameters:
resourceFile- the resource file to read- Returns:
- the properties file if the resource exists, otherwise null
- Throws:
AssertionError- if something went wrong while readin the resource file
-
getLocale
-
isFloodgateUniqueId
-
toFloodgateUniqueId
-
toFloodgateUniqueId
-
fromShortUniqueId
-
isUniquePrefix
-
generateCode
-
generateCodeChar
public static char generateCodeChar() -
getStackTrace
-