Package pl.spcode.navauth.api.domain
Interface AuthUser
public interface AuthUser
-
Method Summary
Modifier and TypeMethodDescription@Nullable UUIDRetrieves the Mojang UUID associated with the user, if available.Retrieves the username associated with the user.getUUID()Retrieves the global UUID identifier associated with the user.default BooleanChecks whether the user is considered premium based on the presence of a Mojang UUID.
-
Method Details
-
getUUID
UUID getUUID()Retrieves the global UUID identifier associated with the user.- Returns:
- the UUID of the user.
-
getMojangUUID
Retrieves the Mojang UUID associated with the user, if available. NOTE: User can have a premium username with non-premium status.- Returns:
- the Mojang UUID of the user, or
nullif the user does not have one.
-
getUsername
String getUsername()Retrieves the username associated with the user.- Returns:
- the username of the user.
-
isPremium
Checks whether the user is considered premium based on the presence of a Mojang UUID. NOTE: User can have a premium username with non-premium status.- Returns:
trueif the user has a Mojang UUID, indicating premium status;falseotherwise.
-