Package de.saibotk.jmaw
Class UUIDInfo
java.lang.Object
de.saibotk.jmaw.UUIDInfo
This is the response of the Mojang API containing the current user id and username for a given username.
- Since:
- 1.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetId()
Returns the UUID.getName()
Returns the username.boolean
isDemo()
Returns if the account is a demo account.boolean
isLegacy()
Returns if an account is a legacy account.void
setDemo
(boolean demo) Set if an account is a demo account.void
Set the UUID.void
setLegacy
(boolean legacy) Set if an account is a legacy account.void
Set the username.
-
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
Returns the UUID.- Returns:
- the UUID or null if an error occurred.
- Since:
- 1.0
-
setId
Set the UUID. This will not modify anything on the Mojang account / API.- Parameters:
id
- the uuid.- Since:
- 1.0
-
getName
Returns the username.- Returns:
- the username or null if an error occurred.
- Since:
- 1.0
-
setName
Set the username. This will not modify anything on the Mojang account / API.- Parameters:
name
- the username.- Since:
- 1.0
-