Package net.minestom.server.utils
Class UniqueIdUtils
java.lang.Object
net.minestom.server.utils.UniqueIdUtils
An utilities class for
UUID
.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull UUID
fromNbt
(@NotNull net.kyori.adventure.nbt.IntArrayBinaryTag tag) static UUID
intArrayToUuid
(int[] array) static boolean
isUniqueId
(String input) Checks whether theinput
string is anUUID
.static @NotNull net.kyori.adventure.nbt.IntArrayBinaryTag
static int[]
uuidToIntArray
(UUID uuid)
-
Field Details
-
UNIQUE_ID_PATTERN
-
-
Constructor Details
-
UniqueIdUtils
public UniqueIdUtils()
-
-
Method Details
-
isUniqueId
Checks whether theinput
string is anUUID
.- Parameters:
input
- The input string to be checked- Returns:
true
if the input an unique identifier, otherwisefalse
-
fromNbt
@NotNull public static @NotNull UUID fromNbt(@NotNull @NotNull net.kyori.adventure.nbt.IntArrayBinaryTag tag) -
toNbt
@NotNull public static @NotNull net.kyori.adventure.nbt.IntArrayBinaryTag toNbt(@NotNull @NotNull UUID uuid) -
uuidToIntArray
-
intArrayToUuid
-