Interface AuthUser


public interface AuthUser
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable UUID
    Retrieves the Mojang UUID associated with the user, if available.
    Retrieves the username associated with the user.
    Retrieves the global UUID identifier associated with the user.
    default Boolean
    Checks 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

      @Nullable @Nullable UUID 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 null if the user does not have one.
    • getUsername

      String getUsername()
      Retrieves the username associated with the user.
      Returns:
      the username of the user.
    • isPremium

      default Boolean 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:
      true if the user has a Mojang UUID, indicating premium status; false otherwise.