Class UniqueIdUtils

java.lang.Object
net.minestom.server.utils.UniqueIdUtils

@Internal public final class UniqueIdUtils extends Object
An utilities class for UUID.
  • Field Details

    • UNIQUE_ID_PATTERN

      public static final Pattern UNIQUE_ID_PATTERN
  • Constructor Details

    • UniqueIdUtils

      public UniqueIdUtils()
  • Method Details

    • isUniqueId

      public static boolean isUniqueId(String input)
      Checks whether the input string is an UUID.
      Parameters:
      input - The input string to be checked
      Returns:
      true if the input an unique identifier, otherwise false
    • 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

      public static int[] uuidToIntArray(UUID uuid)
    • intArrayToUuid

      public static UUID intArrayToUuid(int[] array)