Package valorless.valorlessutils.uuid
Class UUIDFetcher
java.lang.Object
valorless.valorlessutils.uuid.UUIDFetcher
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long
Date when name changes were introduced -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
Fetches the name synchronously and returns itstatic void
Fetches the name asynchronously and passes it to the consumerstatic UUID
Fetches the uuid synchronously and returns itstatic void
Fetches the uuid asynchronously and passes it to the consumerstatic UUID
Fetches the uuid synchronously for a specified name and timestatic void
Fetches the uuid synchronously for a specified name and time and passes the result to the consumer
-
Field Details
-
FEBRUARY_2015
public static final long FEBRUARY_2015Date when name changes were introduced- See Also:
-
-
Constructor Details
-
UUIDFetcher
public UUIDFetcher()
-
-
Method Details
-
getUUID
Fetches the uuid asynchronously and passes it to the consumer- Parameters:
name
- The nameaction
- Do what you want to do with the uuid her
-
getUUID
Fetches the uuid synchronously and returns it- Parameters:
name
- The name- Returns:
- The uuid
-
getUUIDAt
Fetches the uuid synchronously for a specified name and time and passes the result to the consumer- Parameters:
name
- The nametimestamp
- Time when the player had this name in millisecondsaction
- Do what you want to do with the uuid her
-
getUUIDAt
Fetches the uuid synchronously for a specified name and time- Parameters:
name
- The nametimestamp
- Time when the player had this name in milliseconds- See Also:
-
getName
Fetches the name asynchronously and passes it to the consumer- Parameters:
uuid
- The uuidaction
- Do what you want to do with the name her
-
getName
Fetches the name synchronously and returns it- Parameters:
uuid
- The uuid- Returns:
- The name
-