Package com.cryptomorin.xseries.profiles
Class PlayerUUIDs
java.lang.Object
com.cryptomorin.xseries.profiles.PlayerUUIDs
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final UUIDUsed as the default UUID for GameProfiles.We can't use Guava's BiMap here since non-existing players are cached too.We can't use Guava's BiMap here since non-existing players are cached too. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic UUIDgetOfflineUUID(String username) static UUIDgetRealUUIDOfPlayer(String username) static UUIDgetRealUUIDOfPlayer(String username, UUID uuid) static booleanstatic StringtoUndashedUUID(UUID id) static UUIDUUIDFromDashlessString(String dashlessUUIDString)
-
Field Details
-
IDENTITY_UUID
Used as the default UUID for GameProfiles. Also used as a null-indicating value. -
OFFLINE_TO_ONLINE
We can't use Guava's BiMap here since non-existing players are cached too. -
ONLINE_TO_OFFLINE
We can't use Guava's BiMap here since non-existing players are cached too. -
USERNAME_TO_ONLINE
-
-
Constructor Details
-
PlayerUUIDs
public PlayerUUIDs()
-
-
Method Details
-
UUIDFromDashlessString
-
toUndashedUUID
-
getOfflineUUID
-
isOnlineMode
public static boolean isOnlineMode() -
getRealUUIDOfPlayer
-
getRealUUIDOfPlayer
- Returns:
- null if a player with this username doesn't exist.
-