Class UUIDInfo

java.lang.Object
de.saibotk.jmaw.UUIDInfo

public class UUIDInfo extends Object
This is the response of the Mojang API containing the current user id and username for a given username.
Since:
1.0
  • Constructor Details

    • UUIDInfo

      public UUIDInfo()
  • Method Details

    • isDemo

      public boolean isDemo()
      Returns if the account is a demo account.
      Returns:
      true if it is and false if not.
      Since:
      1.0
    • setDemo

      public void setDemo(boolean demo)
      Set if an account is a demo account. This will not modify anything on the Mojang account / API.
      Parameters:
      demo - whether or not the account is a demo account.
      Since:
      1.0
    • isLegacy

      public boolean isLegacy()
      Returns if an account is a legacy account.
      Returns:
      true if it is and false if not.
      Since:
      1.0
    • setLegacy

      public void setLegacy(boolean legacy)
      Set if an account is a legacy account. This will not modify anything on the Mojang account / API.
      Parameters:
      legacy - whether or not the account is a legacy account.
      Since:
      1.0
    • getId

      public String getId()
      Returns the UUID.
      Returns:
      the UUID or null if an error occurred.
      Since:
      1.0
    • setId

      public void setId(String id)
      Set the UUID. This will not modify anything on the Mojang account / API.
      Parameters:
      id - the uuid.
      Since:
      1.0
    • getName

      public String getName()
      Returns the username.
      Returns:
      the username or null if an error occurred.
      Since:
      1.0
    • setName

      public void setName(String name)
      Set the username. This will not modify anything on the Mojang account / API.
      Parameters:
      name - the username.
      Since:
      1.0