Package net.minestom.server.utils
Class UUIDUtils
java.lang.Object
net.minestom.server.utils.UUIDUtils
An utilities class for
UUID.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull UUIDfromNbt(@NotNull net.kyori.adventure.nbt.IntArrayBinaryTag tag) static UUIDintArrayToUuid(int[] array) static booleanChecks whether theinputstring is anUUID.static @NotNull net.kyori.adventure.nbt.IntArrayBinaryTagstatic int[]uuidToIntArray(UUID uuid)
-
Field Details
-
UNIQUE_ID_PATTERN
-
-
Constructor Details
-
UUIDUtils
public UUIDUtils()
-
-
Method Details
-
isUuid
Checks whether theinputstring is anUUID.- Parameters:
input- The input string to be checked- Returns:
trueif 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
-