string To UUID
Converts a compact (no-hyphen) or hyphenated UUID string into a standard Java UUID by inserting hyphens at the correct positions.
Mojang API responses may return UUIDs without hyphens; this helper produces a valid, parseable UUID.
Return
the resulting UUID
Parameters
uuid String
the raw UUID string to convert