Package com.velocitypowered.api.util
Class UuidUtils
- java.lang.Object
-
- com.velocitypowered.api.util.UuidUtils
-
public final class UuidUtils extends Object
Provides a small, useful selection of utilities for working with Minecraft UUIDs.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static UUIDfromUndashed(String string)Converts from an undashed Mojang-style UUID into a JavaUUIDobject.static UUIDgenerateOfflinePlayerUuid(String username)Generates a UUID for use for offline mode.static StringtoUndashed(UUID uuid)Converts from a JavaUUIDobject into an undashed Mojang-style UUID.
-
-
-
Method Detail
-
fromUndashed
public static UUID fromUndashed(String string)
Converts from an undashed Mojang-style UUID into a JavaUUIDobject.- Parameters:
string- the string to convert- Returns:
- the UUID object
-
toUndashed
public static String toUndashed(UUID uuid)
Converts from a JavaUUIDobject into an undashed Mojang-style UUID.- Parameters:
uuid- the UUID to convert- Returns:
- the undashed UUID
-
-