Class UUIDFetcher

java.lang.Object
valorless.valorlessutils.uuid.UUIDFetcher

public class UUIDFetcher extends Object
  • Field Details

  • Constructor Details

    • UUIDFetcher

      public UUIDFetcher()
  • Method Details

    • getUUID

      public static void getUUID(String name, Consumer<UUID> action)
      Fetches the uuid asynchronously and passes it to the consumer
      Parameters:
      name - The name
      action - Do what you want to do with the uuid her
    • getUUID

      public static UUID getUUID(String name)
      Fetches the uuid synchronously and returns it
      Parameters:
      name - The name
      Returns:
      The uuid
    • getUUIDAt

      public static void getUUIDAt(String name, long timestamp, Consumer<UUID> action)
      Fetches the uuid synchronously for a specified name and time and passes the result to the consumer
      Parameters:
      name - The name
      timestamp - Time when the player had this name in milliseconds
      action - Do what you want to do with the uuid her
    • getUUIDAt

      public static UUID getUUIDAt(String name, long timestamp)
      Fetches the uuid synchronously for a specified name and time
      Parameters:
      name - The name
      timestamp - Time when the player had this name in milliseconds
      See Also:
    • getName

      public static void getName(UUID uuid, Consumer<String> action)
      Fetches the name asynchronously and passes it to the consumer
      Parameters:
      uuid - The uuid
      action - Do what you want to do with the name her
    • getName

      public static String getName(UUID uuid)
      Fetches the name synchronously and returns it
      Parameters:
      uuid - The uuid
      Returns:
      The name